diff --git a/libraries/AP_Mission/AP_Mission.cpp b/libraries/AP_Mission/AP_Mission.cpp index f15e753e4a031..89691085d3b51 100644 --- a/libraries/AP_Mission/AP_Mission.cpp +++ b/libraries/AP_Mission/AP_Mission.cpp @@ -2553,7 +2553,7 @@ bool AP_Mission::distance_to_landing(uint16_t index, float &tot_distance, Locati } // run through remainder of mission to approximate a distance to landing - for (uint8_t i=0; i<255; i++) { + for (uint8_t i=0; i