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 43bb7b6 commit e8ff11cCopy full SHA for e8ff11c
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