From 1c41124eac7edb3ab94ccb71bd40c2897633952c Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Sat, 16 Mar 2019 17:13:35 +0000 Subject: [PATCH] fix stupid --- Nasal/ECAM.nas | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Nasal/ECAM.nas b/Nasal/ECAM.nas index 375ba8aa..30be5563 100644 --- a/Nasal/ECAM.nas +++ b/Nasal/ECAM.nas @@ -296,6 +296,23 @@ ECAM.MSGclr(); var LowerECAM = { button: func(b) { + man_sel = getprop("/ECAM/Lower/man-select"); + if (b == "clr" and getprop("/it-autoflight/output/athr-warning") == 2) { + setprop("/it-autoflight/output/athr-warning", 0); + setprop("/ECAM/Lower/light/clr", 0); + setprop("/ECAM/warnings/master-caution-light", 0); + LowerECAM.failCall("sts"); + return; + } + + if (b == "clr" and getprop("/it-autoflight/output/ap-warning") == 2) { + setprop("/it-autoflight/output/ap-warning", 0); + setprop("/ECAM/Lower/light/clr", 0); + setprop("/ECAM/warnings/master-warning-light", 0); + LowerECAM.failCall("sts"); + return; + } + if (b == "clr" and getprop("/ECAM/Lower/man-select") == 0 and getprop("/ECAM/Lower/fault-select") == 0) { ecam.ECAM_controller.clear(); }