Skip to content

Commit 80556a0

Browse files
authored
Merge pull request #11167 from Tharazi97/Lp_ticker_tests
Fix lp ticker and common ticker tests
2 parents 96fbf9d + 2159032 commit 80556a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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)

TESTS/mbed_hal/lp_ticker/main.cpp

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

89-
while (lp_ticker_read() > ticks_now);
89+
while (lp_ticker_read() >= ticks_now);
9090
}
9191

9292
void ticker_event_handler_stub(const ticker_data_t *const ticker)

0 commit comments

Comments
 (0)