From 5c3a0926a157ee3d7d86bb52372adccb5f0a1df3 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 27 Sep 2019 18:44:38 +1000 Subject: [PATCH] GCS_MAVLink: adjust for proximity rangefinder types changing namespacing --- libraries/GCS_MAVLink/GCS_Common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index f2a105b452..d673def5f6 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -290,7 +290,7 @@ void GCS_MAVLINK::send_distance_sensor() const AP_Proximity *proximity = AP_Proximity::get_singleton(); if (proximity != nullptr) { for (uint8_t i = 0; i < proximity->num_sensors(); i++) { - if (proximity->get_type(i) == AP_Proximity::Proximity_Type_RangeFinder) { + if (proximity->get_type(i) == AP_Proximity::Type::RangeFinder) { filter_possible_proximity_sensors = true; } }