Skip to content

Commit b6d2445

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

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
@@ -125,7 +125,7 @@ void overflow_protect()
125125

126126
const uint32_t max_count = ((1 << p_ticker_info->bits) - 1);
127127

128-
if ((max_count - ticks_now) > time_window) {
128+
if ((max_count - ticks_now) >= time_window) {
129129
return;
130130
}
131131

0 commit comments

Comments
 (0)