mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 05:43:35 +08:00
Add manual seed to dataman hash to allow later incrementing the seed number for incompatible changes
This commit is contained in:
committed by
Lorenz Meier
parent
db774798fa
commit
ff0d7613b1
@@ -109,7 +109,7 @@ struct dataman_compat_s {
|
||||
uint32_t key;
|
||||
};
|
||||
|
||||
#define DM_COMPAT_KEY ((sizeof(struct mission_item_s) << 24) + (sizeof(struct mission_s) << 16) + (sizeof(struct fence_vertex_s) << 8) + sizeof(struct dataman_compat_s))
|
||||
#define DM_COMPAT_KEY (1 + (sizeof(struct mission_item_s) << 24) + (sizeof(struct mission_s) << 16) + (sizeof(struct fence_vertex_s) << 8) + sizeof(struct dataman_compat_s))
|
||||
|
||||
/** Maximum size in bytes of a single item instance is
|
||||
* defined by adding the structure type to the union below
|
||||
|
||||
Reference in New Issue
Block a user