From 02774b8ff4b639546720b87e8112aeec55c68495 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 29 Dec 2019 19:00:58 +0100 Subject: Here you go, object-oriented lowbat --- src/jo_lowbat.cpp | 2 +- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jo_lowbat.cpp b/src/jo_lowbat.cpp index 73a91b3..73899a7 100644 --- a/src/jo_lowbat.cpp +++ b/src/jo_lowbat.cpp @@ -49,7 +49,7 @@ int Lowbat::jo_fetchAcstat(void) { int ret; - cout << "Fetching acstat: " + cout << "Fetching acstat: "; ret = system("acpi | grep -q Discharging"); if (ret != 0) cout << "Charging" << endl; diff --git a/src/main.cpp b/src/main.cpp index d9f6874..dfcc2f4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -20,7 +20,7 @@ int main(int argc, const char *argv[]) { return 2; } if (argc > 2 && !strcmp(argv[1], "--say")) { - if (lowbat.jo_testEspeak()) { + if (!lowbat.jo_testEspeak()) { lowbat.jo_setMsg(argv[2]); speaks = 1; } -- cgit v1.2.3