Commit 02eeddda authored by Don Gagne's avatar Don Gagne

Finalize not needed

parent fa7d4906
......@@ -453,8 +453,6 @@ void MAVLinkProtocol::sendMessage(LinkInterface* link, mavlink_message_t message
// Create buffer
static uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
// Question: What is min_length
mavlink_finalize_message_chan(&message, systemid, componentid, link->getMavlinkChannel(), message.len, message.len, mavlink_get_crc_extra(&message));
// Write message into buffer, prepending start sign
int len = mavlink_msg_to_send_buffer(buffer, &message);
// If link is connected
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment