diff Small_CPU/Src/spi.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 2fc08a0d1ec3
children 1b995079c045
line wrap: on
line diff
--- a/Small_CPU/Src/spi.c	Thu Nov 12 20:06:04 2020 +0100
+++ b/Small_CPU/Src/spi.c	Sun Nov 15 19:52:03 2020 +0100
@@ -307,7 +307,9 @@
 
 	if ((global.dataSendToSlave.getDeviceDataNow) || (DeviceDataPending))
 	{
-		if(((DevicedataDelayCnt == 0) || (((get_voltage() != 6.0) && (get_temperature() != 0.0)))))			/* devicedata complete? */
+		if(((DevicedataDelayCnt == 0) || (((get_voltage() != 6.0) && (get_temperature() != 0.0)
+											&& global.deviceDataSendToMaster.hw_Info.checkCompass)
+											&& global.deviceDataSendToMaster.hw_Info.checkADC)))			/* devicedata complete? */
 		{
 			global.dataSendToSlave.getDeviceDataNow = 0;
 			DeviceDataPending = 0;