Skip to content

Commit

Permalink
Merge pull request #1248 from AerialCoboticus/fix_telemetry_impl_actu…
Browse files Browse the repository at this point in the history
…ator

Fix segfault in TelemetryImpl::process_actuator_output_status
  • Loading branch information
JonasVautherin authored Oct 29, 2020
2 parents ae0bcc5 + 59f4d61 commit 85c8973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/telemetry/telemetry_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ void TelemetryImpl::process_actuator_output_status(const mavlink_message_t& mess
const unsigned actuators_size = sizeof(status.actuator) / sizeof(status.actuator[0]);
// Can't use std::copy because status is packed.
for (std::size_t i = 0; i < actuators_size; ++i) {
actuators[i] = status.actuator[i];
actuators.push_back(status.actuator[i]);
}

set_actuator_output_status(active, actuators);
Expand Down

0 comments on commit 85c8973

Please sign in to comment.