mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
logger: initialize timer_call to 0 (hrt_call_every reads some fields)
This commit is contained in:
parent
44ac7d11e7
commit
4e1652fa6b
@ -657,6 +657,7 @@ void Logger::run()
|
||||
|
||||
/* init the update timer */
|
||||
struct hrt_call timer_call;
|
||||
memset(&timer_call, 0, sizeof(hrt_call));
|
||||
px4_sem_t timer_semaphore;
|
||||
px4_sem_init(&timer_semaphore, 0, 0);
|
||||
hrt_call_every(&timer_call, _log_interval, _log_interval, timer_callback, &timer_semaphore);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user