FTP: remove reserved uint32 from header.

This commit is contained in:
Vladimir Ermakov
2014-09-10 11:22:03 +04:00
parent 0d2e250d11
commit 745707d193
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -247,9 +247,8 @@ MavlinkFTP::_reply(Request *req)
PayloadHeader *payload = reinterpret_cast<PayloadHeader *>(&req->message.payload[0]);
payload->seqNumber = payload->seqNumber + 1;
payload->reserved[0] = 0;
payload->reserved[1] = 0;
payload->reserved[2] = 0;
payload->padding[0] = 0;
payload->padding[1] = 0;
mavlink_message_t msg;
msg.checksum = 0;
+1 -1
View File
@@ -77,7 +77,7 @@ public:
uint8_t opcode; ///< Command opcode
uint8_t size; ///< Size of data
uint8_t req_opcode; ///< Request opcode returned in kRspAck, kRspNak message
uint16_t reserved[3]; ///< reserved area
uint8_t padding[2]; ///< 32 bit aligment padding
uint32_t offset; ///< Offsets for List and Read commands
uint8_t data[]; ///< command data, varies by Opcode
};