TO Memo logic, smoking sign logic

This commit is contained in:
Jonathan Redpath 2018-11-19 12:47:31 +00:00
parent 7127868f97
commit 7690b21092
2 changed files with 3 additions and 3 deletions

View file

@ -74,7 +74,7 @@ var messages_memo = func {
seatbelts.active = 0;
}
if (getprop("/controls/switches/no-smoking-sign") == 1 and getprop("/ECAM/left-msg") != "TO-MEMO" and getprop("/ECAM/left-msg") != "LDG-MEMO") {
if (getprop("/controls/switches/no-smoking-sign") == 1 and getprop("/gear/gear[1]/wow") == 1 and getprop("/ECAM/left-msg") != "TO-MEMO" and getprop("/ECAM/left-msg") != "LDG-MEMO") { # should go off after takeoff assuming switch is in auto due to old logic from the days when smoking was allowed!
nosmoke.active = 1;
} else {
nosmoke.active = 0;

View file

@ -132,9 +132,9 @@ var ECAM = {
}
}
if (wow == 0) {
if (getprop("/ECAM/warning-phase") >= 3) {
setprop("/ECAM/to-memo-enable", 0);
} else if ((stateL != 3 or stateR != 3) and wow == 1) {
} else {
setprop("/ECAM/to-memo-enable", 1);
}