Poll every 100ms
This commit is contained in:
parent
6ba4ffbcfb
commit
c050132065
1 changed files with 4 additions and 0 deletions
4
main.c
4
main.c
|
@ -197,6 +197,10 @@ void statusLoop() {
|
|||
}
|
||||
if (eventCount)
|
||||
writeStatus();
|
||||
|
||||
// Poll every 100ms
|
||||
struct timespec toSleep = {0, 100000L};
|
||||
nanosleep(&toSleep, &toSleep);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue