mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 23:11:37 +08:00
Let commander be less verbose
This commit is contained in:
@@ -3051,11 +3051,8 @@ void *commander_low_prio_loop(void *arg)
|
|||||||
if (need_param_autosave_timeout > 0 && hrt_elapsed_time(&need_param_autosave_timeout) > 200000ULL) {
|
if (need_param_autosave_timeout > 0 && hrt_elapsed_time(&need_param_autosave_timeout) > 200000ULL) {
|
||||||
int ret = param_save_default();
|
int ret = param_save_default();
|
||||||
|
|
||||||
if (ret == OK) {
|
if (ret != OK) {
|
||||||
mavlink_and_console_log_info(mavlink_fd, "settings autosaved");
|
mavlink_and_console_log_critical(mavlink_fd, "settings auto save error");
|
||||||
|
|
||||||
} else {
|
|
||||||
mavlink_and_console_log_critical(mavlink_fd, "settings save error");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
need_param_autosave = false;
|
need_param_autosave = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user