diff --git a/Nasal/ECAM.nas b/Nasal/ECAM.nas index 98d3590e..1147fcb8 100644 --- a/Nasal/ECAM.nas +++ b/Nasal/ECAM.nas @@ -313,6 +313,10 @@ var LowerECAM = { return; } + if (b == "clr" and getprop("/ECAM/Lower/man-select") == 0 and getprop("/ECAM/Lower/fault-select") == 0) { + ecam.ECAM_controller.clear(); + } + if (getprop("/ECAM/Lower/fault-select") == 0) { if (b != "clr") { if (!man_sel) { diff --git a/Nasal/ECAM/ECAM-controller.nas b/Nasal/ECAM/ECAM-controller.nas index 84b8c8c6..ebd6df96 100644 --- a/Nasal/ECAM/ECAM-controller.nas +++ b/Nasal/ECAM/ECAM-controller.nas @@ -220,7 +220,13 @@ var ECAM_controller = { } }, clear: func() { - print("Clear!"); + foreach (var w; warnings.vector) { + if (w.active == 1) { + w.active = 0; # todo: need to hit CLR to clear condition, not automatic + w.noRepeat = 0; # should warning only clear if condition is not true? + break; + } + } }, };