diff Small_CPU/Src/compass.c @ 559:84a4e1200726

Check if HW evaluation was performed: Devicedata is only requested once at startup and then every 10 minutes. To make sure that HW information related to compass and ADC are forwarded, two indicators have been added which may delay the respond by one second.
author Ideenmodellierer
date Sun, 15 Nov 2020 19:52:03 +0100
parents 573a2bc796c8
children 91a8f9893e68
line wrap: on
line diff
--- a/Small_CPU/Src/compass.c	Thu Nov 12 20:06:04 2020 +0100
+++ b/Small_CPU/Src/compass.c	Sun Nov 15 19:52:03 2020 +0100
@@ -294,6 +294,7 @@
 	if(global.deviceDataSendToMaster.hw_Info.compass == 0)
 	{
 		global.deviceDataSendToMaster.hw_Info.compass = hardwareCompass;
+		global.deviceDataSendToMaster.hw_Info.checkCompass = 1;
 	}
 	tfull32 dataBlock[4];
 	if(BFA_readLastDataBlock((uint32_t *)dataBlock) == BFA_OK)