aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2019-12-29 16:02:18 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2019-12-29 16:02:18 +0100
commitbee85722628e77c13b16651e17524437019a5e40 (patch)
tree104246780c0cb411b9bbc4ee5aa1e562ef31ce6d
parentwork in progress (diff)
downloadlowbat-gnu-bee85722628e77c13b16651e17524437019a5e40.tar.gz
lowbat-gnu-bee85722628e77c13b16651e17524437019a5e40.tar.bz2
lowbat-gnu-bee85722628e77c13b16651e17524437019a5e40.tar.xz
lowbat-gnu-bee85722628e77c13b16651e17524437019a5e40.tar.zst
lowbat-gnu-bee85722628e77c13b16651e17524437019a5e40.zip
in progress
-rw-r--r--Makefile2
-rw-r--r--src/jo_lowbat.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 29219d6..d24f59c 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ OBJS_DIR = obj/
TRGT_DIR = bin/
SRCS_NAME = main.cpp
-SRCS_NAME += jo_exec.cpp
+#SRCS_NAME += jo_exec.cpp
SRCS_NAME += jo_notify.cpp
SRCS_NAME += jo_lowbat.cpp
diff --git a/src/jo_lowbat.cpp b/src/jo_lowbat.cpp
index ab74eaf..96686e5 100644
--- a/src/jo_lowbat.cpp
+++ b/src/jo_lowbat.cpp
@@ -35,7 +35,7 @@ Lowbat::jo_fetchBatlvl(void) {
uint8_t batlvlint;
cout << "Fetching batlvl: ";
- batlvl = this->jo_exec("acpi | awk '{print $4}' | rev | cut -c 3- | rev");
+ batlvl = Lowbat::jo_exec("acpi | awk '{print $4}' | rev | cut -c 3- | rev");
batlvl.erase(remove(batlvl.begin(), batlvl.end(), '\n'), batlvl.end());
batlvlint = stoi(batlvl);
cout << batlvlint << "%" << endl;