From e419c46060e250e5a48a3b5a5fa2ab4891c6bb02 Mon Sep 17 00:00:00 2001 From: Jonathan Redpath Date: Fri, 7 Dec 2018 17:57:54 +0000 Subject: [PATCH] Bugfix clear light --- Nasal/ECAM.nas | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Nasal/ECAM.nas b/Nasal/ECAM.nas index 77a592a7..94ac0083 100644 --- a/Nasal/ECAM.nas +++ b/Nasal/ECAM.nas @@ -299,6 +299,8 @@ var LowerECAM = { #call status } + + if (getprop("/ECAM/Lower/fault-select") == 0) { if (b != "clr") { if (!man_sel) { @@ -316,6 +318,8 @@ var LowerECAM = { setprop("/ECAM/Lower/light/" ~ b, 1); } } + } elsif (getprop("/ECAM/Lower/light/clr") == 1) { + setprop("/ECAM/Lower/light/clr", 0); } } else { if (b == "clr") {