From ff85ac3d87eb04b85fd5226206ca079c91d163fe Mon Sep 17 00:00:00 2001 From: Jonathan Redpath Date: Mon, 19 Nov 2018 14:28:27 +0000 Subject: [PATCH] Update no-smoke logic --- Nasal/ECAM-logic.nas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nasal/ECAM-logic.nas b/Nasal/ECAM-logic.nas index 9759297a..20adbb55 100644 --- a/Nasal/ECAM-logic.nas +++ b/Nasal/ECAM-logic.nas @@ -68,13 +68,13 @@ var messages_memo = func { 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; } else { 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; } else { nosmoke.active = 0;