Update no-smoke logic
This commit is contained in:
parent
7cfb30f815
commit
ff85ac3d87
1 changed files with 2 additions and 2 deletions
|
@ -68,13 +68,13 @@ var messages_memo = func {
|
||||||
gnd_splrs.active = 0;
|
gnd_splrs.active = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getprop("/controls/switches/seatbelt-sign") == 1 and getprop("/ECAM/left-msg") != "TO-MEMO" and getprop("/ECAM/left-msg") != "LDG-MEMO") {
|
if (getprop("/controls/lighting/seatbelt-sign") == 1 and getprop("/ECAM/left-msg") != "TO-MEMO" and getprop("/ECAM/left-msg") != "LDG-MEMO") {
|
||||||
seatbelts.active = 1;
|
seatbelts.active = 1;
|
||||||
} else {
|
} else {
|
||||||
seatbelts.active = 0;
|
seatbelts.active = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
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!
|
if (getprop("/controls/lighting/no-smoking-sign") == 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;
|
nosmoke.active = 1;
|
||||||
} else {
|
} else {
|
||||||
nosmoke.active = 0;
|
nosmoke.active = 0;
|
||||||
|
|
Reference in a new issue