From c270c172dd67e9ab74d13fcf572688bceb3c61d6 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 29 Dec 2019 18:56:54 +0100 Subject: espeak bug, searching --- src/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') 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 #include +#include #include #include #include @@ -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]); -- cgit v1.2.3