diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-09-07 14:50:28 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-09-07 14:50:28 +0200 |
commit | 2b9f3a4845c280304b75044c43c18818035b325d (patch) | |
tree | dce66c7d164f6bb42ae8b3446ba1166e24159576 | |
parent | 1538247a72f37a2f969aa5c41f7a07da4ae31d35 (diff) | |
download | px4-firmware-2b9f3a4845c280304b75044c43c18818035b325d.tar.gz px4-firmware-2b9f3a4845c280304b75044c43c18818035b325d.tar.bz2 px4-firmware-2b9f3a4845c280304b75044c43c18818035b325d.zip |
Made parameter error messages pickier
-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; } |