fix stupid
This commit is contained in:
parent
6dce56234f
commit
1c41124eac
1 changed files with 17 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Reference in a new issue