Mercurial > public > ostc4
diff Small_CPU/Src/uartProtocol_O2.c @ 975:142f3d0363b3 Evo_2_23
Workaround single DiveO2 startup:
If a DiveO2 sensor is used without Mux then the sensor is not recognized by the Autodetection. It seems to be a timing issue. A delay between first command send and receive function seems to fix (or hide) the problem.
| author | Ideenmodellierer |
|---|---|
| date | Tue, 28 Jan 2025 22:31:17 +0100 |
| parents | 3420e3ba698d |
| children | 0b81ac558e89 |
line wrap: on
line diff
--- a/Small_CPU/Src/uartProtocol_O2.c Tue Jan 28 16:15:31 2025 +0100 +++ b/Small_CPU/Src/uartProtocol_O2.c Tue Jan 28 22:31:17 2025 +0100 @@ -109,6 +109,7 @@ UART_clearRxBuffer(&Uart1Ctrl); uartO2_SetupCmd(localComState,cmdString,&cmdLength); UART_SendCmdString(cmdString); + HAL_Delay(80); rxState = O2RX_CONFIRM; respondErrorDetected = 0; digO2Connected = 0;
