Skip to content

Commit c409825

Browse files
committed
tests-mbed_hal-common_tickers / lp ticker speed test : remove set_interrupt call loop
1 parent 2153046 commit c409825

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

TESTS/mbed_hal/common_tickers/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,12 +408,12 @@ void ticker_speed_test(void)
408408
counter = NUM_OF_CALLS;
409409
timer.reset();
410410
timer.start();
411-
while (counter--) {
411+
// while (counter--) {
412412
intf->set_interrupt(0);
413-
}
413+
// }
414414
timer.stop();
415415

416-
TEST_ASSERT(timer.read_us() < (NUM_OF_CALLS * (MAX_FUNC_EXEC_TIME_US + DELTA_FUNC_EXEC_TIME_US)));
416+
TEST_ASSERT(timer.read_us() < (MAX_FUNC_EXEC_TIME_US + DELTA_FUNC_EXEC_TIME_US));
417417

418418
/* ---- Test fire_interrupt function. ---- */
419419
counter = NUM_OF_CALLS;

0 commit comments

Comments
 (0)