From d41a5be22f6c4a62c4ec9c09c1fb94b7763cb280 Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Sat, 21 Nov 2020 18:41:27 +0000 Subject: [PATCH] Fix runtime error - cruise page has no light so failed --- Nasal/ECAM/ECAM-main.nas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Nasal/ECAM/ECAM-main.nas b/Nasal/ECAM/ECAM-main.nas index a0767c0a..821333ed 100644 --- a/Nasal/ECAM/ECAM-main.nas +++ b/Nasal/ECAM/ECAM-main.nas @@ -308,9 +308,11 @@ var ECAMControlPanel = { # todo }, lightOff: func(pageLightOff) { + if (pageLightOff == "crz") { return; } ECAM.lights[pageLightOff].setBoolValue(0); }, lightOn: func(pageLightOn) { + if (pageLightOff == "crz") { return; } ECAM.lights[pageLightOn].setBoolValue(1); }, };