aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2019-12-29 19:00:58 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2019-12-29 19:00:58 +0100
commit02774b8ff4b639546720b87e8112aeec55c68495 (patch)
treede00eae63930150d908c0590676d8d3a41f805ca /src
parentespeak bug, searching (diff)
downloadlowbat-gnu-02774b8ff4b639546720b87e8112aeec55c68495.tar.gz
lowbat-gnu-02774b8ff4b639546720b87e8112aeec55c68495.tar.bz2
lowbat-gnu-02774b8ff4b639546720b87e8112aeec55c68495.tar.xz
lowbat-gnu-02774b8ff4b639546720b87e8112aeec55c68495.tar.zst
lowbat-gnu-02774b8ff4b639546720b87e8112aeec55c68495.zip
Here you go, object-oriented lowbat
Diffstat (limited to 'src')
-rw-r--r--src/jo_lowbat.cpp2
-rw-r--r--src/main.cpp2
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;
}