diff options
Diffstat (limited to 'apps/mavlink')
-rw-r--r-- | apps/mavlink/mavlink_parameters.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/mavlink/mavlink_parameters.c b/apps/mavlink/mavlink_parameters.c index 8278837e8..ef8f8b5e4 100644 --- a/apps/mavlink/mavlink_parameters.c +++ b/apps/mavlink/mavlink_parameters.c @@ -189,9 +189,9 @@ static int mavlink_pm_save_eeprom() int result = param_export(fd, false); close(fd); - if (result < 0) { + if (result != 0) { unlink(mavlink_parameter_file); - warn("error exporting parameters to '%s'", mavlink_parameter_file); + warn(result, "error exporting parameters to '%s'", mavlink_parameter_file); return -2; } @@ -218,7 +218,7 @@ mavlink_pm_load_eeprom() int result = param_load(fd); close(fd); - if (result < 0) { + if (result != 0) { warn("error reading parameters from '%s'", mavlink_parameter_file); return -2; } |