From 73038a0e091cf18a6fa7d23d5b167fc3e7351c58 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Mon, 29 May 2017 19:09:46 +0200 Subject: [PATCH] ArduCopter: GCS_mavlink style correction --- ArduCopter/GCS_Mavlink.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduCopter/GCS_Mavlink.cpp b/ArduCopter/GCS_Mavlink.cpp index 978d35e6a7..fbc775f9f0 100644 --- a/ArduCopter/GCS_Mavlink.cpp +++ b/ArduCopter/GCS_Mavlink.cpp @@ -224,9 +224,9 @@ void NOINLINE Copter::send_proximity(mavlink_channel_t chan, uint16_t count_max) // send horizontal distances AP_Proximity::Proximity_Distance_Array dist_array; - uint8_t horiz_count = MIN(count_max, PROXIMITY_MAX_DIRECTION); // send at most PROXIMITY_MAX_DIRECTION horizontal distances + const uint8_t horiz_count = MIN(count_max, PROXIMITY_MAX_DIRECTION); // send at most PROXIMITY_MAX_DIRECTION horizontal distances if (g2.proximity.get_horizontal_distances(dist_array)) { - for (uint8_t i=0; i