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