mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 20:23:34 +08:00
mavlink: remove _log_enabled flag
It's obsolete since we removed the mavlink log file
This commit is contained in:
@@ -534,15 +534,6 @@ protected:
|
||||
const bool updated_cpuload = _cpuload_sub->update(&cpuload);
|
||||
const bool updated_battery = _battery_status_sub->update(&battery_status);
|
||||
|
||||
if (updated_status) {
|
||||
if (status.arming_state >= vehicle_status_s::ARMING_STATE_ARMED) {
|
||||
_mavlink->set_logging_enabled(true);
|
||||
|
||||
} else {
|
||||
_mavlink->set_logging_enabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
if (updated_status || updated_battery || updated_cpuload) {
|
||||
mavlink_sys_status_t msg = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user