Browse Source

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.
master
Beat Küng 4 years ago committed by Daniel Agar
parent
commit
c0285611ec
  1. 4
      src/modules/logger/logger.cpp

4
src/modules/logger/logger.cpp

@ -1397,6 +1397,10 @@ void Logger::start_log_mavlink() @@ -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);

Loading…
Cancel
Save