1
0
Fork 0

Fix runtime error - cruise page has no light so failed

This commit is contained in:
legoboyvdlp R 2020-11-21 18:41:27 +00:00
parent c4ef0d1cff
commit d41a5be22f

View file

@ -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);
},
};