diff Small_CPU/Src/scheduler.c @ 1077:bd8ab302ef4a Icon_Integration

Added uart support for HUD: the protocol implementation for the HUD has been added. It may be activated by the compile switch ENABLE_HUD_SUPPORT. Because the HUD will not mapped to the three classic o2 value display slots, the sensor data structure has been increased to the max number of devices => all devices may now raise device specific data.
author Ideenmodellierer
date Mon, 02 Mar 2026 17:22:25 +0100
parents 449e0f8f23d0
children
line wrap: on
line diff
--- a/Small_CPU/Src/scheduler.c	Sun Feb 22 21:23:57 2026 +0100
+++ b/Small_CPU/Src/scheduler.c	Mon Mar 02 17:22:25 2026 +0100
@@ -336,7 +336,10 @@
 	{
 		externalInterface_SwitchADC(1-externalInterface_isEnabledADC());
 	}
-
+	if((global.dataSendToSlave.data.externalInterface_Cmd & 0x00FF) == EXT_INTERFACE_HUD_UPDATE)	/* update HUD sequence */
+	{
+		externalInterface_SetHUDSequence(global.dataSendToSlave.data.externalInterface_HUD_Update, global.dataSendToSlave.data.externalInterface_HUD_Brightness);
+	}
 	externalInface_SetSensorMap(global.dataSendToSlave.data.externalInterface_SensorMap);
 	if(global.dataSendToSlave.data.externalInterface_Cmd & 0x00FF)	/* lowest nibble for commands */
 	{