mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
params cmd: be less verbose
Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
parent
a1f169f752
commit
10bf6a4b59
@ -1275,8 +1275,8 @@ param_import_internal(int fd, bool mark_saved)
|
||||
int result = -1;
|
||||
|
||||
if (bson_decoder_init_file(&decoder, fd, param_import_callback, &state)) {
|
||||
PX4_ERR("decoder init failed");
|
||||
goto out;
|
||||
PX4_WARN("decoder init failed");
|
||||
return -ENODATA;
|
||||
}
|
||||
|
||||
state.mark_saved = mark_saved;
|
||||
@ -1287,12 +1287,6 @@ param_import_internal(int fd, bool mark_saved)
|
||||
|
||||
} while (result > 0);
|
||||
|
||||
out:
|
||||
|
||||
if (result < 0) {
|
||||
PX4_ERR("BSON error decoding parameters");
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user