Browse Source

GCS_MAVLINK: cope with AP_Frsky_Telem being created after init

may be created by the FPort backend
c415-sdk
Andrew Tridgell 5 years ago
parent
commit
1b528137f7
  1. 1
      libraries/GCS_MAVLink/GCS_Common.cpp

1
libraries/GCS_MAVLink/GCS_Common.cpp

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

Loading…
Cancel
Save