Skip to content

Commit a7712f0

Browse files
Remove comments
1 parent 3bd9ce5 commit a7712f0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

internal_filesystem/lib/mpos/battery_voltage.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,6 @@ def get_battery_percentage(raw_adc_value=None):
143143
"""
144144
voltage = read_battery_voltage(raw_adc_value=raw_adc_value)
145145
percentage = (voltage - MIN_VOLTAGE) * 100.0 / (MAX_VOLTAGE - MIN_VOLTAGE)
146-
print(f"percentage = {percentage}")
147-
print(f"min = {min(100.0, percentage)}")
148146
return max(0,min(100.0, percentage)) # limit to 100.0% and make sure it's positive
149147

150148

0 commit comments

Comments
 (0)