From 421ce8f7887d5ff045645464f6dd495718624761 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 4 Dec 2019 02:21:49 +0100 Subject: Warns under 15% battery --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 590f2d8..9fae9e1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -24,7 +24,7 @@ int main(int argc, const char *argv[]) { acstat.erase(remove(acstat.begin(), acstat.end(), '\n'), acstat.end()); batlvl.erase(remove(batlvl.begin(), batlvl.end(), '\n'), batlvl.end()); batlvlint = stoi(batlvl); - if (batlvlint < 90) { + if (batlvlint < 15) { while (!strcmp(acstat.c_str(), "Discharging")) { jo_notify(batlvl); if (strcmp(arg_one.c_str(), "--silent")) { -- cgit v1.2.3