diff --git a/src/uas/QGCUASFileManager.cc b/src/uas/QGCUASFileManager.cc index 6034117396620908bb865ebefc3e66c48c2f15d0..9e590995bbf01020aef56b62991b2840fd259335 100644 --- a/src/uas/QGCUASFileManager.cc +++ b/src/uas/QGCUASFileManager.cc @@ -60,11 +60,12 @@ void QGCUASFileManager::nothingMessage() { mavlink_message_t message; - unsigned crcstate = 0; RequestHeader hdr; - hdr.magic = 9; - crcstate = crc32((uint8_t*)&hdr, 4, crcstate); - hdr.crc32 = crcstate; + hdr.magic = 'f'; + hdr.session = 0; + hdr.crc32 = 0; + hdr.size = 0; + hdr.crc32 = crc32((uint8_t*)&hdr, sizeof(hdr) + hdr.size, 0); mavlink_msg_encapsulated_data_pack(250, 0, &message, _encdata_seq, (uint8_t*)&hdr);