Skip to content

Commit a3ec9f3

Browse files
author
Jarkko Paso
committed
platform timer: Call timer start in enable
This timer was never started and therefore read_us returned always 0 causing bad timings.
1 parent 8f7c0ae commit a3ec9f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/nanostack/nanostack-hal-mbed-cmsis-rtos/arm_hal_timer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ void platform_timer_enable(void)
4545
equeue = mbed_highprio_event_queue();
4646
MBED_ASSERT(equeue != NULL);
4747
#endif
48-
// Prime the SingletonPtrs - can't construct from IRQ/critical section
49-
timer.get();
48+
timer->start();
49+
// Prime the SingletonPtr - can't construct from IRQ/critical section
5050
timeout.get();
5151
}
5252

0 commit comments

Comments
 (0)