mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 22:43:33 +08:00
Dataman: Do nnot pack structs to avoid reading back wrong values on existing systems
This commit is contained in:
@@ -107,18 +107,15 @@ typedef enum {
|
||||
* defined by adding the structure type to the union below
|
||||
*/
|
||||
|
||||
#pragma pack(push, 1)
|
||||
typedef union dataman_max_size_t {
|
||||
struct mission_item_s mission_item;
|
||||
struct mission_s mission;
|
||||
struct fence_vertex_s vertex;
|
||||
} dataman_max_size_t;
|
||||
#pragma pack(pop)
|
||||
|
||||
|
||||
#define DM_MAX_DATA_SIZE sizeof(dataman_max_size_t)
|
||||
|
||||
|
||||
/** Retrieve from the data manager store */
|
||||
__EXPORT ssize_t
|
||||
dm_read(
|
||||
|
||||
Reference in New Issue
Block a user