mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 03:23:34 +08:00
mavlink parameter load should discard all current parameters before loading from EEPROM
This commit is contained in:
@@ -215,11 +215,11 @@ mavlink_pm_load_eeprom()
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int result = param_import(fd);
|
int result = param_load(fd);
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|
||||||
if (result < 0) {
|
if (result < 0) {
|
||||||
warn("error importing from '%s'", mavlink_parameter_file);
|
warn("error reading parameters from '%s'", mavlink_parameter_file);
|
||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user