mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 06:47:35 +08:00
fix logger: turn off lockstep when starting log streaming
Lockstep created deadlocks between logger and mavlink, due to logger waiting for mavlink and mavlink waiting for lockstep.
This commit is contained in:
@@ -1397,6 +1397,10 @@ void Logger::start_log_mavlink()
|
||||
return;
|
||||
}
|
||||
|
||||
// mavlink log does not work in combination with lockstep, it leads to dead-locks
|
||||
px4_lockstep_unregister_component(_lockstep_component);
|
||||
_lockstep_component = -1;
|
||||
|
||||
// initialize cpu load as early as possible to get more data
|
||||
initialize_load_output(PrintLoadReason::Preflight);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user