Mercurial > public > ostc4
comparison Small_CPU/Src/uartProtocol_O2.c @ 957:3420e3ba698d Evo_2_23
External sensor commands: Add sensor ID to command:
In the previous version a command was send without information regarding the target sensor. To have the possibility in future to e.g. calibrate a specific sensor, the sensor ID is now transmitted together with the command. As example in the new implementation the O2 Sensor selected in the sensor menu will blink to enable sensor identification.
author | Ideenmodellierer |
---|---|
date | Mon, 06 Jan 2025 20:06:35 +0100 |
parents | effadaa3a1f7 |
children |
comparison
equal
deleted
inserted
replaced
956:083afabc6578 | 957:3420e3ba698d |
---|---|
132 } | 132 } |
133 } | 133 } |
134 rxState = O2RX_CONFIRM; | 134 rxState = O2RX_CONFIRM; |
135 uartO2_SetupCmd(localComState,cmdString,&cmdLength); | 135 uartO2_SetupCmd(localComState,cmdString,&cmdLength); |
136 UART_SendCmdString(cmdString); | 136 UART_SendCmdString(cmdString); |
137 if(localComState == UART_O2_CHECK) | |
138 { | |
139 localComState = UART_O2_IDLE; /* confirmation seems to be send after blinking => the response could be longer as the channel switch time => ignore */ | |
140 } | |
137 } | 141 } |
138 externalInterface_SetSensorState(activeSensor + EXT_INTERFACE_MUX_OFFSET,localComState); | 142 externalInterface_SetSensorState(activeSensor + EXT_INTERFACE_MUX_OFFSET,localComState); |
139 } | 143 } |
140 | 144 |
141 void uartO2_ProcessData(uint8_t data) | 145 void uartO2_ProcessData(uint8_t data) |