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