mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 10:13:35 +08:00
mavlink-ftp: Remove two extra bytes we don not need
This commit is contained in:
@@ -165,7 +165,7 @@ private:
|
||||
// unsigned len = mavlink_msg_system_time_pack_chan(_mavlink->get_system_id(), _mavlink->get_component_id(),
|
||||
// _mavlink->get_channel(), &msg, 255, 255);
|
||||
|
||||
if (!_mavlink->message_buffer_write(&msg, len+2)) {
|
||||
if (!_mavlink->message_buffer_write(&msg, len)) {
|
||||
warnx("FTP TX ERR");
|
||||
} else {
|
||||
warnx("wrote: sys: %d, comp: %d, chan: %d, len: %d, checksum: %d",
|
||||
|
||||
Reference in New Issue
Block a user