Systems: Bugfix
This commit is contained in:
parent
0c3aa121fa
commit
094a1511b2
1 changed files with 1 additions and 1 deletions
|
@ -634,7 +634,7 @@ var ELEC = {
|
||||||
setprop("/systems/electrical/battery1-time", getprop("/sim/time/elapsed-sec"));
|
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")) {
|
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
|
battery2_percent_calc = battery2_percent + 4.5; # Roughly 90 percent every 10 mins
|
||||||
if (battery2_percent_calc > 100) {
|
if (battery2_percent_calc > 100) {
|
||||||
|
|
Reference in a new issue