We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdb8ba6 commit 61c0007Copy full SHA for 61c0007
TESTS/mbed_hal/common_tickers_freq/main.cpp
@@ -69,8 +69,6 @@ void ticker_frequency_test()
69
const uint32_t ticker_bits = intf->get_info()->bits;
70
const uint32_t ticker_max = (1 << ticker_bits) - 1;
71
72
- overflowCounter = 0;
73
-
74
intf->init();
75
76
/* Detect overflow for tickers with lower counters width. */
@@ -84,6 +82,8 @@ void ticker_frequency_test()
84
82
expected_key = strcmp(_key, "base_time");
85
83
} while (expected_key);
86
+ overflowCounter = 0;
+
87
const uint32_t begin_ticks = intf->read();
88
89
/* Assume that there was no overflow at this point - we are just after init. */
0 commit comments