System: Fix bug in APU Shutdown

This commit is contained in:
Joshua Davidson 2018-09-28 15:58:30 -04:00
parent 198298c270
commit 8267a12d26

View file

@ -27,7 +27,9 @@ var eng_common_init = func {
# Start APU
setlistener("/controls/APU/start", func {
if ((getprop("/controls/APU/master") == 1) and (getprop("/controls/APU/start") == 1)) {
if (getprop("/controls/APU/master") == 1 and getprop("/controls/APU/start") == 1) {
apuBleedChk.stop();
setprop("/systems/apu/bleed-counting", 0);
if (getprop("/systems/acconfig/autoconfig-running") == 0) {
interpolate("/systems/apu/rpm", apu_max, spinup_time);
apu_egt_check.start();