ECAM: only do the swap if the display failed
This commit is contained in:
parent
1b76b38b2a
commit
bb432458eb
1 changed files with 4 additions and 1 deletions
|
@ -131,12 +131,15 @@ var ECAM = {
|
|||
},
|
||||
};
|
||||
|
||||
var du4_lgt = props.globals.getNode("/controls/lighting/DU/du4", 1);
|
||||
var ECAMControlPanel = {
|
||||
sysPageBtn: func(page) {
|
||||
if (page == "REL") {
|
||||
pts.Modes.EcamDuXfr.setBoolValue(0);
|
||||
} 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);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue