Skip to content

Commit 05b61a0

Browse files
committed
tests-mbed_hal-common_tickers_freq : correct overflowCounter value
1 parent 6466764 commit 05b61a0

File tree

1 file changed

+2
-2
lines changed
  • TESTS/mbed_hal/common_tickers_freq

1 file changed

+2
-2
lines changed

TESTS/mbed_hal/common_tickers_freq/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ void ticker_frequency_test()
6969
const uint32_t ticker_bits = intf->get_info()->bits;
7070
const uint32_t ticker_max = (1 << ticker_bits) - 1;
7171

72-
overflowCounter = 0;
73-
7472
intf->init();
7573

7674
/* Detect overflow for tickers with lower counters width. */
@@ -84,6 +82,8 @@ void ticker_frequency_test()
8482
expected_key = strcmp(_key, "base_time");
8583
} while (expected_key);
8684

85+
overflowCounter = 0;
86+
8787
const uint32_t begin_ticks = intf->read();
8888

8989
/* Assume that there was no overflow at this point - we are just after init. */

0 commit comments

Comments
 (0)