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