From 54c6891e4a142a5de0b4f769f97b7d36f4064d2c Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Fri, 17 Apr 2020 22:06:58 +0100 Subject: [PATCH] If you toggle setlistener too fast it don't fire --- Nasal/Systems/APU.nas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nasal/Systems/APU.nas b/Nasal/Systems/APU.nas index 105a7a7b..347bc9fa 100644 --- a/Nasal/Systems/APU.nas +++ b/Nasal/Systems/APU.nas @@ -246,11 +246,11 @@ setlistener("controls/apu/master", func() { } elsif (!APUNodes.Controls.master.getValue()) { APUController.APU.stop(); } -}, 0, 0); +}, 0, 1); setlistener("controls/pneumatic/switches/bleedapu", func() { APUController.APU.signals.bleedWasUsed = 1; -}, 0, 0); +}, 0, 1); var checkMasterThreeMinTimer = maketimer(0.1, func() { if (!APUNodes.Controls.master.getValue()) {