mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-24 16:01:53 +08:00
logger: initialize timer_call to 0 (hrt_call_every reads some fields)
This commit is contained in:
1 parent
44ac7d11e7
commit
4e1652fa6b
1 file changed
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user