From ca6e34dfbd8175f30c3706aecc4728a58b122aac Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 9 Jul 2017 09:51:51 +1000 Subject: [PATCH] GCS_MAVLink: use Notify singleton for sending statustext --- libraries/GCS_MAVLink/GCS_Common.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 7df83db9a0..7b6ba44ec2 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -1201,6 +1201,11 @@ 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); + } } /*