comparison 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
comparison
equal deleted inserted replaced
974:53900dfe335b 975:142f3d0363b3
107 localComState = UART_O2_CHECK; 107 localComState = UART_O2_CHECK;
108 lastComState = UART_O2_CHECK; 108 lastComState = UART_O2_CHECK;
109 UART_clearRxBuffer(&Uart1Ctrl); 109 UART_clearRxBuffer(&Uart1Ctrl);
110 uartO2_SetupCmd(localComState,cmdString,&cmdLength); 110 uartO2_SetupCmd(localComState,cmdString,&cmdLength);
111 UART_SendCmdString(cmdString); 111 UART_SendCmdString(cmdString);
112 HAL_Delay(80);
112 rxState = O2RX_CONFIRM; 113 rxState = O2RX_CONFIRM;
113 respondErrorDetected = 0; 114 respondErrorDetected = 0;
114 digO2Connected = 0; 115 digO2Connected = 0;
115 } 116 }
116 else 117 else