Changed charging indicator to display charging even when battery is full.
This commit is contained in:
parent
7775921a3d
commit
953a64459a
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user