Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
741:6a35e2e97bfb | 742:e23fe82cbf8c |
---|---|
515 { | 515 { |
516 lasttick = HAL_GetTick(); | 516 lasttick = HAL_GetTick(); |
517 ticksdiff = time_elapsed_ms(Scheduler.tickstart,lasttick); | 517 ticksdiff = time_elapsed_ms(Scheduler.tickstart,lasttick); |
518 | 518 |
519 #ifdef ENABLE_CO2_SUPPORT | 519 #ifdef ENABLE_CO2_SUPPORT |
520 if(global.dataSendToSlave.data.externalInterface_Cmd & EXT_INTERFACE_UART_CO2) | 520 if(externalInterface_GetUARTProtocol() & (EXT_INTERFACE_UART_CO2 >> 8)) |
521 { | 521 { |
522 UART_HandleCO2Data(); | 522 UART_HandleCO2Data(); |
523 } | 523 } |
524 #endif | 524 #endif |
525 #ifdef ENABLE_SENTINEL_MODE | 525 #ifdef ENABLE_SENTINEL_MODE |
526 if(global.dataSendToSlave.data.externalInterface_Cmd & EXT_INTERFACE_UART_SENTINEL) | 526 if(externalInterface_GetUARTProtocol() & (EXT_INTERFACE_UART_SENTINEL >> 8)) |
527 { | 527 { |
528 UART_HandleSentinelData(); | 528 UART_HandleSentinelData(); |
529 } | 529 } |
530 #endif | 530 #endif |
531 if(global.dataSendToSlave.data.externalInterface_Cmd & EXT_INTERFACE_UART_O2) | 531 if(externalInterface_GetUARTProtocol() & (EXT_INTERFACE_UART_O2 >> 8)) |
532 { | 532 { |
533 UART_HandleDigitalO2(); | 533 UART_HandleDigitalO2(); |
534 } | 534 } |
535 | 535 |
536 if(ticksdiff >= Scheduler.counterSPIdata100msec * 100 + 10) | 536 if(ticksdiff >= Scheduler.counterSPIdata100msec * 100 + 10) |
843 { | 843 { |
844 UART_HandleCO2Data(); | 844 UART_HandleCO2Data(); |
845 } | 845 } |
846 #endif | 846 #endif |
847 #ifdef ENABLE_SENTINEL_MODE | 847 #ifdef ENABLE_SENTINEL_MODE |
848 if(global.dataSendToSlave.data.externalInterface_Cmd & EXT_INTERFACE_UART_SENTINEL) | 848 if(externalInterface_GetUARTProtocol() & (EXT_INTERFACE_UART_SENTINEL >> 8)) |
849 { | 849 { |
850 UART_HandleSentinelData(); | 850 UART_HandleSentinelData(); |
851 } | 851 } |
852 #endif | 852 #endif |
853 | 853 |