Ensure tests use the new method.

pull/11236/head
Hugues Kamba 2019-08-15 15:35:23 +01:00
parent 61b1482b12
commit 80cdc3e625
2 changed files with 4 additions and 4 deletions

View File

@ -146,7 +146,7 @@ void test_detach(void)
const uint32_t wait_time_ms = 500;
Semaphore sem(0, 1);
ticker.attach(callback(sem_release, &sem), ticker_time_s);
ticker.attach_s(callback(sem_release, &sem), ticker_time_s);
sem.acquire();
@ -171,7 +171,7 @@ void test_attach_time(void)
gtimer.reset();
gtimer.start();
ticker.attach(callback(stop_gtimer_set_flag), MICROSECONDS_TO_SECONDS(DELAY_US));
ticker.attach_s(callback(stop_gtimer_set_flag), MICROSECONDS_TO_SECONDS(DELAY_US));
while (!ticker_callback_flag);
ticker.detach();
const int time_diff = gtimer.read_us();

View File

@ -268,7 +268,7 @@ void test_detach(void)
const uint32_t wait_time_ms = 500;
Semaphore sem(0, 1);
ticker.attach(callback(sem_release, &sem), ticker_time_s);
ticker.attach_s(callback(sem_release, &sem), ticker_time_s);
sem.acquire();
@ -293,7 +293,7 @@ void test_attach_time(void)
gtimer.reset();
gtimer.start();
ticker.attach(callback(stop_gtimer_set_flag), MICROSECONDS_TO_SECONDS(DELAY_US));
ticker.attach_s(callback(stop_gtimer_set_flag), MICROSECONDS_TO_SECONDS(DELAY_US));
while (!ticker_callback_flag);
ticker.detach();
const int time_diff = gtimer.read_us();