Skip to content

Commit afddbbf

Browse files
committed
tweaked overflow_protect() lp_ticker()
1 parent 54d7d7e commit afddbbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TESTS/mbed_hal/lp_ticker/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void overflow_protect()
8585
return;
8686
}
8787

88-
while (lp_ticker_read() > ticks_now);
88+
while (lp_ticker_read() >= ticks_now);
8989
}
9090

9191
void ticker_event_handler_stub(const ticker_data_t *const ticker)

0 commit comments

Comments
 (0)