GCS_MAVLINK: cope with AP_Frsky_Telem being created after init

may be created by the FPort backend
This commit is contained in:
Andrew Tridgell 2020-01-01 17:35:51 +11:00
parent f8847bf569
commit 1b528137f7

View File

@ -1775,6 +1775,7 @@ void GCS::send_statustext(MAV_SEVERITY severity, uint8_t dest_bitmask, const cha
logger->Write_Message(text); logger->Write_Message(text);
} }
frsky = AP::frsky_telem();
if (frsky != nullptr) { if (frsky != nullptr) {
frsky->queue_message(severity, text); frsky->queue_message(severity, text);
} }