aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2019-12-29 18:56:54 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2019-12-29 18:57:13 +0100
commitc270c172dd67e9ab74d13fcf572688bceb3c61d6 (patch)
tree201cbafaa0888929404bafcdbbde802a5b626113 /src/main.cpp
parentoriented object is fine (diff)
downloadlowbat-gnu-c270c172dd67e9ab74d13fcf572688bceb3c61d6.tar.gz
lowbat-gnu-c270c172dd67e9ab74d13fcf572688bceb3c61d6.tar.bz2
lowbat-gnu-c270c172dd67e9ab74d13fcf572688bceb3c61d6.tar.xz
lowbat-gnu-c270c172dd67e9ab74d13fcf572688bceb3c61d6.tar.zst
lowbat-gnu-c270c172dd67e9ab74d13fcf572688bceb3c61d6.zip
espeak bug, searching
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 56ee872..d9f6874 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1,5 +1,6 @@
#include <jo_lowbat.hpp>
#include <iostream>
+#include <cstring>
#include <cstdint>
#include <thread>
#include <chrono>
@@ -12,10 +13,12 @@ int main(int argc, const char *argv[]) {
uint8_t speaks;
speaks = 0;
- if (lowbat.jo_testAcpi())
+ if (lowbat.jo_testAcpi()) {
return 1;
- if (lowbat.jo_testNotifySend())
+ }
+ if (lowbat.jo_testNotifySend()) {
return 2;
+ }
if (argc > 2 && !strcmp(argv[1], "--say")) {
if (lowbat.jo_testEspeak()) {
lowbat.jo_setMsg(argv[2]);