mirror of
https://github.com/brendanhaines/ECEN5458_Project.git
synced 2024-12-27 03:17:06 -07:00
fix indentation
This commit is contained in:
parent
c4d061a57f
commit
45502535ae
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user