mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-06-10 18:15:59 +00:00
Fixed timer starting
This commit is contained in:
parent
2948c9203e
commit
430b8b8947
@ -2,6 +2,7 @@
|
||||
#ifdef STA_RTOS_WATCHDOG_ENABLE
|
||||
|
||||
#include <sta/debug/assert.hpp>
|
||||
#include <sta/debug/debug.hpp>
|
||||
#include <sta/lang.hpp>
|
||||
#include <sta/rtos/defs.hpp>
|
||||
#include <sta/rtos/system/events.hpp>
|
||||
|
@ -12,7 +12,7 @@ namespace sta {
|
||||
running_{false}
|
||||
{
|
||||
// Pass an anonymous function as the callback which will invoke the currently registered callback.
|
||||
timer_id_ = osTimerNew(timeoutHandler, osTimerOnce, arg, &timer_attr_);
|
||||
timer_id_ = osTimerNew(timeoutHandler, osTimerOnce, this, &timer_attr_);
|
||||
|
||||
STA_ASSERT_MSG(timer_id_ != NULL, "Failed to create timer!");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user