comparison Small_CPU/Src/scheduler.c @ 725:621265ec3d23

Update CO2 sensor implementation: Some updates were needed to get the CO2 sensor code up and running again (menu handling and UART DMA transfer).
author Ideenmodellierer
date Sat, 07 Jan 2023 18:11:52 +0100
parents 045ff7800501
children d646a0f724a7
comparison
equal deleted inserted replaced
724:f285424f04d9 725:621265ec3d23
514 { 514 {
515 lasttick = HAL_GetTick(); 515 lasttick = HAL_GetTick();
516 ticksdiff = time_elapsed_ms(Scheduler.tickstart,lasttick); 516 ticksdiff = time_elapsed_ms(Scheduler.tickstart,lasttick);
517 517
518 #ifdef ENABLE_CO2_SUPPORT 518 #ifdef ENABLE_CO2_SUPPORT
519 if(global.dataSendToSlave.data.externalInterface_Cmd & EXT_INTERFACE_UART_SENTINEL) 519 if(global.dataSendToSlave.data.externalInterface_Cmd & EXT_INTERFACE_UART_CO2)
520 { 520 {
521 HandleUARTCO2Data(); 521 HandleUARTCO2Data();
522 } 522 }
523 #endif 523 #endif
524 #ifdef ENABLE_SENTINEL_MODE 524 #ifdef ENABLE_SENTINEL_MODE
836 if(scheduleSetButtonResponsiveness()) 836 if(scheduleSetButtonResponsiveness())
837 setButtonsNow = 0; 837 setButtonsNow = 0;
838 } 838 }
839 839
840 #ifdef ENABLE_CO2_SUPPORT 840 #ifdef ENABLE_CO2_SUPPORT
841 if(global.dataSendToSlave.data.externalInterface_Cmd & EXT_INTERFACE_UART_SENTINEL) 841 if(global.dataSendToSlave.data.externalInterface_Cmd & EXT_INTERFACE_UART_CO2)
842 { 842 {
843 HandleUARTCO2Data(); 843 HandleUARTCO2Data();
844 } 844 }
845 #endif 845 #endif
846 #ifdef ENABLE_SENTINEL_MODE 846 #ifdef ENABLE_SENTINEL_MODE