update macro for mavpack

This commit is contained in:
Matthew Gong
2017-10-04 18:09:06 +08:00
parent 623aac86c3
commit 8256ebfc9b
4 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Tue Sep 12 2017"
#define MAVLINK_BUILD_DATE "Wed Oct 04 2017"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Tue Sep 12 2017"
#define MAVLINK_BUILD_DATE "Wed Oct 04 2017"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
+1 -2
View File
@@ -17,8 +17,7 @@ namespace mavlink {
#define MAVPACKED( __Declaration__ ) __Declaration__ __attribute__((packed))
#elif defined __ARMCC_VERSION
#pragma anon_unions
#pragma pack(push, 1)
#define MAVPACKED( __Declaration__ ) __Declaration__
#define MAVPACKED( __Declaration__ ) _Pragma("pack(push,1)") __Declaration__ _Pragma("pack(pop)")
#else
#define MAVPACKED( __Declaration__ ) __pragma( pack(push, 1) ) __Declaration__ __pragma( pack(pop) )
#endif
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Tue Sep 12 2017"
#define MAVLINK_BUILD_DATE "Wed Oct 04 2017"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255