mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 06:27:34 +08:00
param_shmem: before saving update the param
This commit is contained in:
@@ -974,6 +974,9 @@ param_export(int fd, bool only_unsaved)
|
||||
|
||||
s->unsaved = false;
|
||||
|
||||
/* Make sure to get latest from shmem before saving. */
|
||||
update_from_shmem(s->param, &s->val);
|
||||
|
||||
/* append the appropriate BSON type object */
|
||||
|
||||
switch (param_type(s->param)) {
|
||||
|
||||
Reference in New Issue
Block a user