aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;