Browse Source

GCS_MAVLink: allow uninstall of alt protocol handler

master
Andrew Tridgell 7 years ago
parent
commit
df643d8499
  1. 2
      libraries/GCS_MAVLink/GCS.cpp

2
libraries/GCS_MAVLink/GCS.cpp

@ -58,7 +58,7 @@ bool GCS::install_alternative_protocol(mavlink_channel_t c, GCS_MAVLINK::protoco @@ -58,7 +58,7 @@ bool GCS::install_alternative_protocol(mavlink_channel_t c, GCS_MAVLINK::protoco
if (c >= num_gcs()) {
return false;
}
if (chan(c).alternative.handler) {
if (chan(c).alternative.handler && handler) {
// already have one installed - we may need to add support for
// multiple alternative handlers
return false;

Loading…
Cancel
Save