aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
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]);