Mercurial > public > ostc4
diff Small_CPU/Src/uartProtocol_O2.c @ 921:eb4109d7d1e9 Evo_2_23
Improved mix mode ADC conversion:
Activity of UART sensors may have an impact to ADC measurement. To avoid the ADC trigger was moved into a time window ~300ms after last UART command request => After UART sensor performed measurement but before next measurement is requested. In addition the general ADC measurement cycle has been changed to one second to avoid jitter in the value updates on the display.
author | Ideenmodellierer |
---|---|
date | Sun, 03 Nov 2024 18:19:51 +0100 |
parents | 4832981f9af8 |
children | effadaa3a1f7 |
line wrap: on
line diff
--- a/Small_CPU/Src/uartProtocol_O2.c Sun Nov 03 15:44:54 2024 +0100 +++ b/Small_CPU/Src/uartProtocol_O2.c Sun Nov 03 18:19:51 2024 +0100 @@ -106,6 +106,7 @@ localComState = UART_O2_CHECK; lastComState = UART_O2_CHECK; + UART_clearRxBuffer(); uartO2_SetupCmd(localComState,cmdString,&cmdLength); UART_SendCmdString(cmdString); rxState = O2RX_CONFIRM;