From 5afaf5c4a39af3bb4de3d23d95f6424c00cf7766 Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Mon, 11 May 2020 00:06:58 +0100 Subject: [PATCH] Fix interaction with timers --- Nasal/ECAM/ECAM-logic.nas | 4 ++-- Systems/a320-pneumatic.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Nasal/ECAM/ECAM-logic.nas b/Nasal/ECAM/ECAM-logic.nas index 526caaed..5b834670 100644 --- a/Nasal/ECAM/ECAM-logic.nas +++ b/Nasal/ECAM/ECAM-logic.nas @@ -1535,7 +1535,7 @@ var messages_priority_2 = func { ECAM_controller.warningReset(eng2BleedLowTempIcing); } - if (eng1BleedNotClsd.clearFlag == 0 and (phaseVar <= 2 or phaseVar >= 9 or phaseVar == 6) and warningNodes.Timers.bleed1NotShutOutput.getBoolValue()) { + if (eng1BleedNotClsd.clearFlag == 0 and (phaseVar <= 2 or phaseVar >= 9 or phaseVar == 6) and warningNodes.Timers.bleed1NotShutOutput.getValue() == 1) { eng1BleedNotClsd.active = 1; if (systems.PNEU.Switch.bleed1.getBoolValue()) { eng1BleedNotClsdOff.active = 1; @@ -1547,7 +1547,7 @@ var messages_priority_2 = func { ECAM_controller.warningReset(eng1BleedNotClsdOff); } - if (eng2BleedNotClsd.clearFlag == 0 and (phaseVar <= 2 or phaseVar >= 9 or phaseVar == 6) and warningNodes.Timers.bleed2NotShutOutput.getBoolValue()) { + if (eng2BleedNotClsd.clearFlag == 0 and (phaseVar <= 2 or phaseVar >= 9 or phaseVar == 6) and warningNodes.Timers.bleed2NotShutOutput.getValue == 1) { eng2BleedNotClsd.active = 1; if (systems.PNEU.Switch.bleed2.getBoolValue()) { eng2BleedNotClsdOff.active = 1; diff --git a/Systems/a320-pneumatic.xml b/Systems/a320-pneumatic.xml index 51a99d3a..99fbdbbb 100644 --- a/Systems/a320-pneumatic.xml +++ b/Systems/a320-pneumatic.xml @@ -764,7 +764,7 @@ /systems/pneumatics/valves/engine-2-prv-valve /systems/pneumatics/valves/engine-2-opv-valve /engines/engine[1]/egt-actual - 0.36 + 2.45 /systems/pneumatics/valves/apu-bleed-valve