forked from Archive/PX4-Autopilot
mavlink parameter load should discard all current parameters before loading from EEPROM
This commit is contained in:
parent
168e32cd1b
commit
268db3dd9b
|
@ -215,11 +215,11 @@ mavlink_pm_load_eeprom()
|
|||
return 1;
|
||||
}
|
||||
|
||||
int result = param_import(fd);
|
||||
int result = param_load(fd);
|
||||
close(fd);
|
||||
|
||||
if (result < 0) {
|
||||
warn("error importing from '%s'", mavlink_parameter_file);
|
||||
warn("error reading parameters from '%s'", mavlink_parameter_file);
|
||||
return -2;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue