mavlink parameter load should discard all current parameters before loading from EEPROM

This commit is contained in:
px4dev 2012-08-28 22:55:56 -07:00
parent 168e32cd1b
commit 268db3dd9b
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}