File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
TESTS/mbed_hal/watchdog_timing Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ void test_timeout_lower_limit()
154
154
// Watchdog should not trigger before timeout * clock accuracy.
155
155
// If device restarts while waiting for the kick, test fails.
156
156
157
- ThisThread::sleep_for (sleep_time_ms);
157
+ wait_us (sleep_time_ms * 1000 );
158
158
hal_watchdog_kick ();
159
159
160
160
if (send_reset_notification (¤t_case, 2 * TIMEOUT_LOWER_LIMIT_MS) == false ) {
@@ -164,7 +164,7 @@ void test_timeout_lower_limit()
164
164
hal_watchdog_kick ();
165
165
166
166
// Watchdog should fire before twice the timeout value.
167
- ThisThread::sleep_for (2 * TIMEOUT_LOWER_LIMIT_MS);
167
+ wait_us (2 * TIMEOUT_LOWER_LIMIT_MS * 1000 );
168
168
169
169
// Watchdog reset should have occurred during that wait() above;
170
170
You can’t perform that action at this time.
0 commit comments