detect full

This commit is contained in:
Jos Dehaes 2021-10-06 15:33:43 +02:00
parent 6bb0e930a2
commit 66072711c2
1 changed files with 3 additions and 3 deletions

View File

@ -358,11 +358,11 @@ namespace Cpu {
bool isCharging = CFBooleanGetValue(charging); bool isCharging = CFBooleanGetValue(charging);
if (isCharging) { if (isCharging) {
status = "charging"; status = "charging";
if (percent == 100) {
status = "full";
}
} }
} }
if (percent == 100) {
status = "full";
}
} else { } else {
has_battery = false; has_battery = false;
} }