Skip to content

Commit

Permalink
Removed redundant strip of trailing zeros for 2.0 messages. This is h…
Browse files Browse the repository at this point in the history
…andled later in the ..to_send_buffer function.
  • Loading branch information
beforezod committed Feb 26, 2019
1 parent eb2898a commit 745e7a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/C/include_v2.0/mavlink_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ MAVLINK_HELPER uint16_t mavlink_finalize_message_buffer(mavlink_message_t* msg,
} else {
msg->magic = MAVLINK_STX;
}
msg->len = mavlink1?min_length:_mav_trim_payload(_MAV_PAYLOAD(msg), length);
msg->len = mavlink1?min_length:length;
msg->sysid = system_id;
msg->compid = component_id;
msg->incompat_flags = 0;
Expand Down

0 comments on commit 745e7a0

Please sign in to comment.