mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-09 03:02:36 +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