From 730257fe26d2a17e62cab167b0a568c0f8994eaf Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 27 Sep 2019 18:59:41 +1000 Subject: [PATCH] GCS_MAVLink: adjust for proximity status namespace change --- 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 8899e1ffa2..6d62a913f0 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -342,7 +342,7 @@ void GCS_MAVLINK::send_proximity() const const uint16_t dist_max = (uint16_t)(proximity->distance_max() * 100.0f); // maximum distance the sensor can measure in centimeters // send horizontal distances - if (proximity->get_status() == AP_Proximity::Proximity_Good) { + if (proximity->get_status() == AP_Proximity::Status::Good) { AP_Proximity::Proximity_Distance_Array dist_array; if (proximity->get_horizontal_distances(dist_array)) { for (uint8_t i = 0; i < PROXIMITY_MAX_DIRECTION; i++) {