From 4e01fc6ea26d2a504b8bb4f90f7b225b75133eab Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Thu, 2 Nov 2017 17:08:08 -0400 Subject: [PATCH] A3XX: Bugfix something in electrical --- Nasal/electrical.nas | 8 ++++++-- revision.txt | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Nasal/electrical.nas b/Nasal/electrical.nas index 3c852c16..1f273875 100644 --- a/Nasal/electrical.nas +++ b/Nasal/electrical.nas @@ -441,8 +441,12 @@ var master_elec = func { } if (getprop("/systems/electrical/bus/ac-ess") < 110) { - setprop("/it-autoflight/input/ap1", 0); - setprop("/it-autoflight/input/ap2", 0); + if (getprop("/it-autoflight/output/ap1") == 1) { + setprop("/it-autoflight/input/ap1", 0); + } + if (getprop("/it-autoflight/output/ap2") == 1) { + setprop("/it-autoflight/input/ap2", 0); + } setprop("systems/electrical/on", 0); # ai_spin.setValue(0.2); # aispin.stop(); diff --git a/revision.txt b/revision.txt index b520423b..849de8bc 100644 --- a/revision.txt +++ b/revision.txt @@ -1 +1 @@ -3043 \ No newline at end of file +3044 \ No newline at end of file