mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Update pisugarx.py
limits the voltage to x.xx Signed-off-by: LH <140523069+renewedbullet@users.noreply.github.com>
This commit is contained in:
@ -206,7 +206,7 @@ class PiSugar(plugins.Plugin):
|
||||
self.nextDChg = time.time() + 5
|
||||
|
||||
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
|
||||
ui.set('bat', f"{capacity}%")
|
||||
else: # show battery temperature
|
||||
|
Reference in New Issue
Block a user