mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-01 21:52:12 +08:00
logger: fix -e parameter (logger immediately stopped again after start)
This commit is contained in:
1 parent
408f299dbb
commit
0f30bfa0ac
2 files changed
+3
-1
No files matched your search
@@ -533,7 +533,8 @@ void Logger::run()
|
||||
bool armed = (vehicle_status_sub.get().arming_state == vehicle_status_s::ARMING_STATE_ARMED) ||
|
||||
(vehicle_status_sub.get().arming_state == vehicle_status_s::ARMING_STATE_ARMED_ERROR);
|
||||
|
||||
if (_enabled != armed && !_log_until_shutdown) {
|
||||
if (_was_armed != armed && !_log_until_shutdown) {
|
||||
_was_armed = armed;
|
||||
if (armed) {
|
||||
start_log();
|
||||
|
||||
|
||||
Reference in new issue
Block a user