1
0
Fork 0

ECAM: only do the swap if the display failed

This commit is contained in:
legoboyvdlp R 2021-07-27 21:19:17 +01:00
parent 1b76b38b2a
commit bb432458eb

View file

@ -131,12 +131,15 @@ var ECAM = {
}, },
}; };
var du4_lgt = props.globals.getNode("/controls/lighting/DU/du4", 1);
var ECAMControlPanel = { var ECAMControlPanel = {
sysPageBtn: func(page) { sysPageBtn: func(page) {
if (page == "REL") { if (page == "REL") {
pts.Modes.EcamDuXfr.setBoolValue(0); pts.Modes.EcamDuXfr.setBoolValue(0);
} else { } else {
pts.Modes.EcamDuXfr.setBoolValue(1); if (du4_lgt.getValue() < 0.01 or systems.ELEC.Bus.ac2.getValue() < 110) {
pts.Modes.EcamDuXfr.setBoolValue(1);
}
SystemDisplayController.manCall(page); SystemDisplayController.manCall(page);
} }
}, },