Skip to content

Commit 2159032

Browse files
committed
tweak overflow_protect() common_tickers()
1 parent afddbbf commit 2159032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TESTS/mbed_hal/common_tickers/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void overflow_protect()
129129
return;
130130
}
131131

132-
while (intf->read() > ticks_now);
132+
while (intf->read() >= ticks_now);
133133
}
134134

135135
void ticker_event_handler_stub(const ticker_data_t *const ticker)

0 commit comments

Comments
 (0)