From bb432458eb43d1b5a047c7743287fc5f93fabd69 Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Tue, 27 Jul 2021 21:19:17 +0100 Subject: [PATCH] ECAM: only do the swap if the display failed --- Nasal/ECAM/ECAM-main.nas | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Nasal/ECAM/ECAM-main.nas b/Nasal/ECAM/ECAM-main.nas index 49ee52ac..9de2f5d4 100644 --- a/Nasal/ECAM/ECAM-main.nas +++ b/Nasal/ECAM/ECAM-main.nas @@ -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); } },