From 094a1511b2d352bfc928df516b0b42f71e34dde8 Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Thu, 17 May 2018 00:21:00 -0400 Subject: [PATCH] Systems: Bugfix --- Nasal/electrical.nas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nasal/electrical.nas b/Nasal/electrical.nas index 8660a1f1..988a96dd 100644 --- a/Nasal/electrical.nas +++ b/Nasal/electrical.nas @@ -634,7 +634,7 @@ var ELEC = { setprop("/systems/electrical/battery1-time", getprop("/sim/time/elapsed-sec")); } - if (battery1_percent < 100 and (dc1 > 25 or dc2 > 25) and battery2_sw and !batt2_fail) { + if (battery2_percent < 100 and (dc1 > 25 or dc2 > 25) and battery2_sw and !batt2_fail) { if (getprop("/systems/electrical/battery2-time") + 30 < getprop("/sim/time/elapsed-sec")) { battery2_percent_calc = battery2_percent + 4.5; # Roughly 90 percent every 10 mins if (battery2_percent_calc > 100) {