# HG changeset patch # User Ideenmodellierer # Date 1691695678 -7200 # Node ID 91d5ef16f1fd79eb76bd569da39559a16553020f # Parent ff66b41d6fe4b148ab78db94b694bd82ab9ac426 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. diff -r ff66b41d6fe4 -r 91d5ef16f1fd Small_CPU/Src/scheduler.c --- 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)