From 914618c95cd6250a2ff9362ee85b2f930cf1c0e9 Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Thu, 20 Jul 2023 22:10:48 -0400 Subject: [PATCH] N249: Battery status fix --- src/functions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions.h b/src/functions.h index 42b371f..3a4a605 100644 --- a/src/functions.h +++ b/src/functions.h @@ -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 {