N249: Battery status fix

This commit is contained in:
Nicolas Mailloux 2023-07-20 22:10:48 -04:00
parent a4b62b6811
commit 914618c95c

View file

@ -811,7 +811,7 @@ namespace {
}
}
else if(global::deviceID == "n249\n") {
if(readFile("/sys/class/power_supply/rn5t618-battery/status") != "Not charging\n") {
if(readFile("/sys/class/power_supply/rn5t618-battery/status") != "Discharging\n") {
return 1;
}
else {