changeset 802:91d5ef16f1fd

Removed dependency to protocol setting: In the first implementation sensors had been selected by switching protocol options. With introduction of the autodetection and sensor map this approach has become obsolete => Removed actions which were derived using the protocol setting.
author Ideenmodellierer
date Thu, 10 Aug 2023 21:27:58 +0200
parents ff66b41d6fe4
children 96ffad0a4e57
files Small_CPU/Src/scheduler.c
diffstat 1 files changed, 2 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/Small_CPU/Src/scheduler.c	Thu Aug 10 21:24:04 2023 +0200
+++ b/Small_CPU/Src/scheduler.c	Thu Aug 10 21:27:58 2023 +0200
@@ -318,11 +318,6 @@
 		externalInterface_SwitchADC(1-externalInterface_isEnabledADC());
 	}
 
-	if(((global.dataSendToSlave.data.externalInterface_Cmd >> 8) & 0x0F) != externalInterface_GetUARTProtocol())
-	{
-		externalInterface_SwitchUART((global.dataSendToSlave.data.externalInterface_Cmd >> 8) & 0x0F);
-	}
-
 	externalInface_SetSensorMap(global.dataSendToSlave.data.externalInterface_SensorMap);
 	if(global.dataSendToSlave.data.externalInterface_Cmd & 0x00FF)	/* lowest nibble for commands */
 	{
@@ -516,11 +511,7 @@
 		lasttick = HAL_GetTick();
 		ticksdiff = time_elapsed_ms(Scheduler.tickstart,lasttick);
 
-		if(externalInterface_GetUARTProtocol() != 0)
-		{
-			externalInterface_HandleUART();
-		}
-
+		externalInterface_HandleUART();
 		if(ticksdiff >= Scheduler.counterSPIdata100msec * 100 + 10)
 		{
 			if(SPI_Evaluate_RX_Data()!=0) /* did we receive something ? */
@@ -826,10 +817,7 @@
 				setButtonsNow = 0;
 		}
 
-		if(externalInterface_GetUARTProtocol() != 0)
-		{
-			externalInterface_HandleUART();
-		}
+		externalInterface_HandleUART();
 
 		/* Evaluate received data at 10 ms, 110 ms, 210 ms,... duration ~<1ms */
 		if(ticksdiff >= Scheduler.counterSPIdata100msec * 100 + 10)