diff --git a/main.c b/main.c index 6313471..52bd36d 100644 --- a/main.c +++ b/main.c @@ -197,6 +197,10 @@ void statusLoop() { } if (eventCount) writeStatus(); + + // Poll every 100ms + struct timespec toSleep = {0, 100000L}; + nanosleep(&toSleep, &toSleep); } }