Discharging order

This commit is contained in:
Peter D. Gray 2024-01-31 09:09:03 -05:00
parent b29187fa93
commit 49d302ded9
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C

View File

@ -14,7 +14,7 @@ def sim_plug_toggler():
global fake_voltage
# defined by battery.get_batt_threshold()
levels = [0, 2.9, 3.5, 4.0, 4.5]
levels = [0, 4.5, 4.0, 3.5, 2.9 ]
fake_voltage = levels[(levels.index(fake_voltage) + 1) % len(levels)]