fix warning (mavlink): connection to gcs

This commit is contained in:
Damien SIX 2022-11-08 09:46:21 +01:00 committed by Beat Küng
parent 2eed5306c0
commit 5910f8982a

View File

@ -119,7 +119,7 @@ void RcAndDataLinkChecks::checkAndReport(const Context &context, Report &reporte
events::ID("check_rc_dl_no_dllink"),
log_level, "No connection to the ground control station");
if (reporter.mavlink_log_pub()) {
if (gcs_connection_required && reporter.mavlink_log_pub()) {
mavlink_log_warning(reporter.mavlink_log_pub(), "Preflight Fail: No connection to the ground control station\t");
}