From 9577cb8b39b578f050ba149e199efca4656ec59b Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 3 Jan 2019 12:20:12 +1100 Subject: [PATCH] GCS_MAVLink: send text messages to notify even if no GCSs connected --- libraries/GCS_MAVLink/GCS_Common.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index ee8d70ef38..84675255ab 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -1842,6 +1842,11 @@ void GCS::send_statustext(MAV_SEVERITY severity, uint8_t dest_bitmask, const cha frsky_telemetry_p->queue_message(severity, text); } + AP_Notify *notify = AP_Notify::instance(); + if (notify) { + notify->send_text(text); + } + // filter destination ports to only allow active ports. statustext_t statustext{}; statustext.bitmask = (GCS_MAVLINK::active_channel_mask() | GCS_MAVLINK::streaming_channel_mask() ) & dest_bitmask; @@ -1862,11 +1867,6 @@ void GCS::send_statustext(MAV_SEVERITY severity, uint8_t dest_bitmask, const cha // try and send immediately if possible service_statustext(); - - AP_Notify *notify = AP_Notify::instance(); - if (notify) { - notify->send_text(text); - } } /*