diff Small_CPU/Src/uartProtocol_O2.c @ 1081:1b38d7b8da35 Icon_Integration

Send sensor data cyclic: In the previous version the sensor data which had been updated at last was send to the main CPU. With the introduction of the hud a second device is sending sensor data information => in case of fast sensor data updated it could happen that a sensor data record was never transmitted. To avoid this the sensor data of all sensor slots is now transmitted on a cyclic basis.
author Ideenmodellierer
date Sun, 15 Mar 2026 21:28:53 +0100
parents 0b81ac558e89
children
line wrap: on
line diff
--- a/Small_CPU/Src/uartProtocol_O2.c	Sun Mar 08 21:08:33 2026 +0100
+++ b/Small_CPU/Src/uartProtocol_O2.c	Sun Mar 15 21:28:53 2026 +0100
@@ -103,7 +103,7 @@
 	if(localComState == UART_O2_INIT)
 	{
 		memset((char*) &tmpSensorDataDiveO2, 0, sizeof(tmpSensorDataDiveO2));
-		externalInterface_SetSensorData(0xFF,(uint8_t*)&tmpSensorDataDiveO2);
+		externalInterface_ResetSensorData(activeSensor + EXT_INTERFACE_MUX_OFFSET);
 
 		localComState = UART_O2_CHECK;
 		lastComState = UART_O2_CHECK;