From ee4e68036bd04042107efb23f2b1b68b82a6b955 Mon Sep 17 00:00:00 2001 From: Sidi Liang <1467329765@qq.com> Date: Sun, 11 Sep 2022 16:21:51 +0800 Subject: [PATCH] Lights: Manage warning lights better --- Nasal/node_setup.nas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Nasal/node_setup.nas b/Nasal/node_setup.nas index a393a9f..b305263 100644 --- a/Nasal/node_setup.nas +++ b/Nasal/node_setup.nas @@ -78,6 +78,7 @@ vehicleInformation.lighting.indicator.leftSwitch = vehicleInformation.lighting.i vehicleInformation.lighting.indicator.rightSwitch = vehicleInformation.lighting.indicator.getNode("right_switch", 1); vehicleInformation.lighting.indicator.left = vehicleInformation.lighting.getNode("indicator-left", 1); vehicleInformation.lighting.indicator.right = vehicleInformation.lighting.getNode("indicator-right", 1); +vehicleInformation.lighting.warningLight = props.getNode("/warninglight/start"); #//Systems vehicleInformation.systems = props.getNode("/systems", 1); @@ -106,6 +107,7 @@ vehicleInformation.lighting.indicator.left.setValue(0); vehicleInformation.lighting.indicator.right.setValue(0); vehicleInformation.lighting.indicator.left.setValue(0); vehicleInformation.lighting.indicator.right.setValue(0); +vehicleInformation.lighting.warningLight.setValue(0); #//Systems vehicleInformation.systems.welcomeMessage.setValue(0);