We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 716a5cb commit 6cf495eCopy full SHA for 6cf495e
README.md
@@ -928,7 +928,7 @@ for arbitrary periodic timers:
928
929
```c
930
// t: expiration time, prd: period, now: current time. Return true if expired
931
-bool timer_expired(uint32_t *t, uint64_t prd, uint64_t now) {
+bool timer_expired(uint32_t *t, uint32_t prd, uint32_t now) {
932
if (now + prd < *t) *t = 0; // Time wrapped? Reset timer
933
if (*t == 0) *t = now + prd; // First poll? Set expiration
934
if (*t > now) return false; // Not expired yet, return
0 commit comments