From bee85722628e77c13b16651e17524437019a5e40 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 29 Dec 2019 16:02:18 +0100 Subject: in progress --- Makefile | 2 +- src/jo_lowbat.cpp | 2 +- 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; -- cgit v1.2.3