Mercurial > public > ostc4
comparison Small_CPU/Src/uartProtocol_Co2.c @ 919:c0553dd70608 Evo_2_23
GNSS support for external UART interface:
An ubox gps module may now be connected to the external UART. Per default the functionality is disabled using the compile switch ENABLE_GNSS_SUPPORT
author | Ideenmodellierer |
---|---|
date | Sun, 03 Nov 2024 15:43:04 +0100 |
parents | 4832981f9af8 |
children | effadaa3a1f7 |
comparison
equal
deleted
inserted
replaced
918:f72613a152dd | 919:c0553dd70608 |
---|---|
82 | 82 |
83 if(localComState == UART_CO2_INIT) | 83 if(localComState == UART_CO2_INIT) |
84 { | 84 { |
85 CO2Connected = 0; | 85 CO2Connected = 0; |
86 externalInterface_SetCO2Scale(0.0); | 86 externalInterface_SetCO2Scale(0.0); |
87 UART_clearRxBuffer(); | |
87 UART_StartDMA_Receiption(); | 88 UART_StartDMA_Receiption(); |
88 localComState = UART_CO2_SETUP; | 89 localComState = UART_CO2_SETUP; |
89 } | 90 } |
90 if(localComState == UART_CO2_SETUP) | 91 if(localComState == UART_CO2_SETUP) |
91 { | 92 { |