Mercurial > public > ostc4
diff Small_CPU/Src/scheduler.c @ 742:e23fe82cbf8c
Update Sentinel protocol:
The Sentinel protocol is now supported by autodetection.
Added Autodetection indicator:
In the previous version no indicator showed that an auto detection is running. A new pseudo sensor type has been introduced which now causes the auto detection string to be displayed while the detection is running in the background.
author | Ideenmodellierer |
---|---|
date | Sun, 19 Feb 2023 21:43:24 +0100 |
parents | 2a801cfe23ab |
children | aa6006975e76 |
line wrap: on
line diff
--- a/Small_CPU/Src/scheduler.c Thu Feb 02 17:35:54 2023 +0100 +++ b/Small_CPU/Src/scheduler.c Sun Feb 19 21:43:24 2023 +0100 @@ -517,18 +517,18 @@ ticksdiff = time_elapsed_ms(Scheduler.tickstart,lasttick); #ifdef ENABLE_CO2_SUPPORT - if(global.dataSendToSlave.data.externalInterface_Cmd & EXT_INTERFACE_UART_CO2) + if(externalInterface_GetUARTProtocol() & (EXT_INTERFACE_UART_CO2 >> 8)) { UART_HandleCO2Data(); } #endif #ifdef ENABLE_SENTINEL_MODE - if(global.dataSendToSlave.data.externalInterface_Cmd & EXT_INTERFACE_UART_SENTINEL) + if(externalInterface_GetUARTProtocol() & (EXT_INTERFACE_UART_SENTINEL >> 8)) { UART_HandleSentinelData(); } #endif - if(global.dataSendToSlave.data.externalInterface_Cmd & EXT_INTERFACE_UART_O2) + if(externalInterface_GetUARTProtocol() & (EXT_INTERFACE_UART_O2 >> 8)) { UART_HandleDigitalO2(); } @@ -845,7 +845,7 @@ } #endif #ifdef ENABLE_SENTINEL_MODE - if(global.dataSendToSlave.data.externalInterface_Cmd & EXT_INTERFACE_UART_SENTINEL) + if(externalInterface_GetUARTProtocol() & (EXT_INTERFACE_UART_SENTINEL >> 8)) { UART_HandleSentinelData(); }