Remove comments

This commit is contained in:
Thomas Farstrike
2025-11-29 17:45:32 +01:00
parent 3bd9ce55f9
commit a7712f058b
@@ -143,8 +143,6 @@ def get_battery_percentage(raw_adc_value=None):
"""
voltage = read_battery_voltage(raw_adc_value=raw_adc_value)
percentage = (voltage - MIN_VOLTAGE) * 100.0 / (MAX_VOLTAGE - MIN_VOLTAGE)
print(f"percentage = {percentage}")
print(f"min = {min(100.0, percentage)}")
return max(0,min(100.0, percentage)) # limit to 100.0% and make sure it's positive