From 6d8d35f2721d6e7876dd65b8c3c44ebf96c8b2b4 Mon Sep 17 00:00:00 2001 From: murata Date: Tue, 4 May 2021 16:08:27 +0900 Subject: [PATCH] Copter: Change the direct value to the definition name --- ArduCopter/mode_zigzag.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/mode_zigzag.cpp b/ArduCopter/mode_zigzag.cpp index 52ae72a06b..c5a1fb3d82 100644 --- a/ArduCopter/mode_zigzag.cpp +++ b/ArduCopter/mode_zigzag.cpp @@ -117,7 +117,7 @@ void ModeZigZag::run() // set the direction and the total number of lines zigzag_direction = (Direction)constrain_int16(_direction, 0, 3); - line_num = constrain_int16(_line_num, -1, 32767); + line_num = constrain_int16(_line_num, ZIGZAG_LINE_INFINITY, 32767); // auto control if (stage == AUTO) {