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 54438fd commit 148a93eCopy full SHA for 148a93e
lib/pbio/src/os.c
@@ -42,7 +42,7 @@ void pbio_os_timer_extend(pbio_os_timer_t *timer) {
42
* @return Whether the timer has expired.
43
*/
44
bool pbio_os_timer_is_expired(pbio_os_timer_t *timer) {
45
- return pbdrv_clock_get_ms() - timer->start >= timer->duration;
+ return pbio_util_time_has_passed(pbdrv_clock_get_ms(), timer->start + timer->duration);
46
}
47
48
/**
0 commit comments