From afddbbf2dc4ca03fce50bf410ecabf2ded5cb56e Mon Sep 17 00:00:00 2001 From: int_szyk Date: Thu, 1 Aug 2019 16:27:36 +0200 Subject: [PATCH 1/2] tweaked overflow_protect() lp_ticker() --- TESTS/mbed_hal/lp_ticker/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TESTS/mbed_hal/lp_ticker/main.cpp b/TESTS/mbed_hal/lp_ticker/main.cpp index 58ff4acf7f..00284378e2 100644 --- a/TESTS/mbed_hal/lp_ticker/main.cpp +++ b/TESTS/mbed_hal/lp_ticker/main.cpp @@ -85,7 +85,7 @@ void overflow_protect() return; } - while (lp_ticker_read() > ticks_now); + while (lp_ticker_read() >= ticks_now); } void ticker_event_handler_stub(const ticker_data_t *const ticker) From 21590320a67bc0ddc737cb637623523d5e20659b Mon Sep 17 00:00:00 2001 From: int_szyk Date: Fri, 2 Aug 2019 08:38:32 +0200 Subject: [PATCH 2/2] tweak overflow_protect() common_tickers() --- TESTS/mbed_hal/common_tickers/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TESTS/mbed_hal/common_tickers/main.cpp b/TESTS/mbed_hal/common_tickers/main.cpp index e1a26dc79e..7bf90bb1fd 100644 --- a/TESTS/mbed_hal/common_tickers/main.cpp +++ b/TESTS/mbed_hal/common_tickers/main.cpp @@ -129,7 +129,7 @@ void overflow_protect() return; } - while (intf->read() > ticks_now); + while (intf->read() >= ticks_now); } void ticker_event_handler_stub(const ticker_data_t *const ticker)