If you toggle setlistener too fast it don't fire
This commit is contained in:
parent
04fb699371
commit
54c6891e4a
1 changed files with 2 additions and 2 deletions
|
@ -246,11 +246,11 @@ setlistener("controls/apu/master", func() {
|
||||||
} elsif (!APUNodes.Controls.master.getValue()) {
|
} elsif (!APUNodes.Controls.master.getValue()) {
|
||||||
APUController.APU.stop();
|
APUController.APU.stop();
|
||||||
}
|
}
|
||||||
}, 0, 0);
|
}, 0, 1);
|
||||||
|
|
||||||
setlistener("controls/pneumatic/switches/bleedapu", func() {
|
setlistener("controls/pneumatic/switches/bleedapu", func() {
|
||||||
APUController.APU.signals.bleedWasUsed = 1;
|
APUController.APU.signals.bleedWasUsed = 1;
|
||||||
}, 0, 0);
|
}, 0, 1);
|
||||||
|
|
||||||
var checkMasterThreeMinTimer = maketimer(0.1, func() {
|
var checkMasterThreeMinTimer = maketimer(0.1, func() {
|
||||||
if (!APUNodes.Controls.master.getValue()) {
|
if (!APUNodes.Controls.master.getValue()) {
|
||||||
|
|
Loading…
Reference in a new issue