Skip to content

Commit 80cdc3e

Browse files
committed
Ensure tests use the new method.
1 parent 61b1482 commit 80cdc3e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

TESTS/mbed_drivers/lp_ticker/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ void test_detach(void)
146146
const uint32_t wait_time_ms = 500;
147147
Semaphore sem(0, 1);
148148

149-
ticker.attach(callback(sem_release, &sem), ticker_time_s);
149+
ticker.attach_s(callback(sem_release, &sem), ticker_time_s);
150150

151151
sem.acquire();
152152

@@ -171,7 +171,7 @@ void test_attach_time(void)
171171

172172
gtimer.reset();
173173
gtimer.start();
174-
ticker.attach(callback(stop_gtimer_set_flag), MICROSECONDS_TO_SECONDS(DELAY_US));
174+
ticker.attach_s(callback(stop_gtimer_set_flag), MICROSECONDS_TO_SECONDS(DELAY_US));
175175
while (!ticker_callback_flag);
176176
ticker.detach();
177177
const int time_diff = gtimer.read_us();

TESTS/mbed_drivers/ticker/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ void test_detach(void)
268268
const uint32_t wait_time_ms = 500;
269269
Semaphore sem(0, 1);
270270

271-
ticker.attach(callback(sem_release, &sem), ticker_time_s);
271+
ticker.attach_s(callback(sem_release, &sem), ticker_time_s);
272272

273273
sem.acquire();
274274

@@ -293,7 +293,7 @@ void test_attach_time(void)
293293

294294
gtimer.reset();
295295
gtimer.start();
296-
ticker.attach(callback(stop_gtimer_set_flag), MICROSECONDS_TO_SECONDS(DELAY_US));
296+
ticker.attach_s(callback(stop_gtimer_set_flag), MICROSECONDS_TO_SECONDS(DELAY_US));
297297
while (!ticker_callback_flag);
298298
ticker.detach();
299299
const int time_diff = gtimer.read_us();

0 commit comments

Comments
 (0)