diff --git a/Software/python/server.py b/Software/python/server.py index 33f0d2b..3b037e6 100644 --- a/Software/python/server.py +++ b/Software/python/server.py @@ -251,11 +251,13 @@ def update_battery_voltage(attrname=None, old=None, new=None): vadc = get_mux_adc(BAT_MUX_CHAN) # vbat = vadc * (10+1)/1 vbat = vadc * 12.21/1.022 - vbat_text.text = f"Battery Voltage: {vbat:2.1f}V" if vbat < VBAT_THRESHOLD: + vbat_text.text = f'