From 1c3b7d5ecd2039d91aa20da8534173fdb5d8858c Mon Sep 17 00:00:00 2001 From: yaapu Date: Thu, 10 Dec 2020 10:29:17 +0100 Subject: [PATCH] GCS_MAVLink: added support for passthrough telemetry over crossfire --- libraries/GCS_MAVLink/GCS_Common.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 3bd2b8f858..2f777102d1 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -45,6 +45,7 @@ #include #include #include +#include #include @@ -1947,6 +1948,12 @@ void GCS::send_textv(MAV_SEVERITY severity, const char *fmt, va_list arg_list, u if (spektrum != nullptr) { spektrum->queue_message(severity, first_piece_of_text); } +#endif +#if HAL_CRSF_TELEM_ENABLED + AP_CRSF_Telem* crsf = AP::crsf_telem(); + if (crsf != nullptr) { + crsf->queue_message(severity, first_piece_of_text); + } #endif AP_Notify *notify = AP_Notify::get_singleton(); if (notify) {