mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 06:41:37 +08:00
Commander: Do not report every new data link
This commit is contained in:
@@ -2189,8 +2189,7 @@ int commander_thread_main(int argc, char *argv[])
|
|||||||
if (telemetry_last_dl_loss[i] > 0) {
|
if (telemetry_last_dl_loss[i] > 0) {
|
||||||
mavlink_and_console_log_info(mavlink_fd, "data link #%i regained", i);
|
mavlink_and_console_log_info(mavlink_fd, "data link #%i regained", i);
|
||||||
} else if (telemetry_last_dl_loss[i] == 0){
|
} else if (telemetry_last_dl_loss[i] == 0){
|
||||||
/* report a new link */
|
/* do not report a new data link in order to not spam the user */
|
||||||
mavlink_and_console_log_info(mavlink_fd, "new data link connected : #%i", i);
|
|
||||||
status.data_link_found_new = true;
|
status.data_link_found_new = true;
|
||||||
status_changed = true;
|
status_changed = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user