fix indentation

This commit is contained in:
Brendan Haines 2020-04-08 15:46:34 -06:00
parent c4d061a57f
commit 45502535ae

View File

@ -252,7 +252,7 @@ def update_battery_voltage(attrname=None, old=None, new=None):
# vbat = vadc * (10+1)/1 # vbat = vadc * (10+1)/1
vbat = vadc * 12.21/1.022 vbat = vadc * 12.21/1.022
if vbat < VBAT_THRESHOLD: if vbat < VBAT_THRESHOLD:
vbat_text.text = f'<div style="background-color:red;color:white;padding:2%;">Battery Voltage: <b>{vbat:2.1f}V</b></div>' vbat_text.text = f'<div style="background-color:red;color:white;padding:2%;">Battery Voltage: <b>{vbat:2.1f}V</b></div>'
stop_controller() stop_controller()
print("WARN: Battery Critically Low") print("WARN: Battery Critically Low")
else: else: