We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9154be commit 77853bcCopy full SHA for 77853bc
internal_filesystem/lib/mpos/battery_voltage.py
@@ -34,7 +34,8 @@ def read_battery_voltage():
34
return voltage
35
36
# Main loop to read and print battery voltage
37
-while False: # for testing
+if False:
38
+#for _ in range(10):
39
battery_voltage = read_battery_voltage()
40
print("Battery Voltage: {:.2f} V".format(battery_voltage))
41
time.sleep(1) # Wait 1 second
0 commit comments