Poll every 100ms

This commit is contained in:
Utkarsh Verma 2021-10-15 10:51:47 +05:30
parent 6ba4ffbcfb
commit c050132065
No known key found for this signature in database
GPG Key ID: 817656CF818EFCCC
1 changed files with 4 additions and 0 deletions

4
main.c
View File

@ -197,6 +197,10 @@ void statusLoop() {
}
if (eventCount)
writeStatus();
// Poll every 100ms
struct timespec toSleep = {0, 100000L};
nanosleep(&toSleep, &toSleep);
}
}