diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-09-05 13:24:21 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-09-05 13:24:21 +0200 |
commit | aa785b0d2b339a8fcc730e11b63264b1ff8d146d (patch) | |
tree | 31a90c976af06b5ced0e7f0f463a1de39cede658 /src/modules/systemlib/param | |
parent | 09db74da0a88908aa761940a3de8383c0c64d1e4 (diff) | |
download | px4-firmware-aa785b0d2b339a8fcc730e11b63264b1ff8d146d.tar.gz px4-firmware-aa785b0d2b339a8fcc730e11b63264b1ff8d146d.tar.bz2 px4-firmware-aa785b0d2b339a8fcc730e11b63264b1ff8d146d.zip |
Hotfix: Better error reporting, fixed sched param setup
Diffstat (limited to 'src/modules/systemlib/param')
-rw-r--r-- | src/modules/systemlib/param/param.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/systemlib/param/param.c b/src/modules/systemlib/param/param.c index 24b52d1a9..c69de52b7 100644 --- a/src/modules/systemlib/param/param.c +++ b/src/modules/systemlib/param/param.c @@ -520,7 +520,7 @@ param_save_default(void) if (fd < 0) { warn("opening '%s' for writing failed", param_get_default_file()); - return -1; + return fd; } result = param_export(fd, false); @@ -529,7 +529,7 @@ param_save_default(void) if (result != 0) { warn("error exporting parameters to '%s'", param_get_default_file()); unlink(param_get_default_file()); - return -2; + return result; } return 0; |