diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2019-12-04 02:21:49 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2019-12-04 02:21:49 +0100 |
commit | 421ce8f7887d5ff045645464f6dd495718624761 (patch) | |
tree | e67eee694b71eede15ea872ba431edd459ba290b | |
parent | README update (diff) | |
download | lowbat-gnu-421ce8f7887d5ff045645464f6dd495718624761.tar.gz lowbat-gnu-421ce8f7887d5ff045645464f6dd495718624761.tar.bz2 lowbat-gnu-421ce8f7887d5ff045645464f6dd495718624761.tar.xz lowbat-gnu-421ce8f7887d5ff045645464f6dd495718624761.tar.zst lowbat-gnu-421ce8f7887d5ff045645464f6dd495718624761.zip |
Warns under 15% battery
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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")) { |