Merge pull request #256

Update pisugarx.py
This commit is contained in:
Jayofelony
2024-12-17 18:16:16 +01:00
committed by GitHub

View File

@ -206,7 +206,7 @@ class PiSugar(plugins.Plugin):
self.nextDChg = time.time() + 5 self.nextDChg = time.time() + 5
if self.drot == 0: # show battery voltage if self.drot == 0: # show battery voltage
ui.set('bat', f"{voltage}V") ui.set('bat', f"{voltage:.2f}V")
elif self.drot == 1: # show battery capacity elif self.drot == 1: # show battery capacity
ui.set('bat', f"{capacity}%") ui.set('bat', f"{capacity}%")
else: # show battery temperature else: # show battery temperature