AP_Frsky_Telem: Support for a GCS singleton

This commit is contained in:
Peter Barker 2016-11-22 09:52:38 +11:00 committed by Andrew Tridgell
parent cc28ff49e9
commit 89afa913f1
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ void AP_Frsky_Telem::init(const AP_SerialManager &serial_manager, const char *fi
} else if ((_port = serial_manager.find_serial(AP_SerialManager::SerialProtocol_FrSky_SPort_Passthrough, 0))) {
_protocol = AP_SerialManager::SerialProtocol_FrSky_SPort_Passthrough; // FrSky SPort and SPort Passthrough (OpenTX) protocols (X-receivers)
// make frsky_telemetry available to GCS_MAVLINK (used to queue statustext messages from GCS_MAVLINK)
GCS_MAVLINK::register_frsky_telemetry_callback(this);
gcs().register_frsky_telemetry_callback(this);
// add firmware and frame info to message queue
queue_message(MAV_SEVERITY_INFO, firmware_str);
// save main parameters locally