Changed charging indicator to display charging even when battery is full.

This commit is contained in:
= 2024-10-09 14:36:48 -04:00
parent 7775921a3d
commit 953a64459a

View File

@ -121,7 +121,7 @@ class BatteryMonitor:
battery_plugged = battery.power_plugged
else:
bat_status = open('/sys/class/power_supply/BAT1/status', 'r').read().strip()
battery_plugged = (bat_status == 'Charging')
battery_plugged = (bat_status != 'Discharging')
return battery_percentage, battery_plugged