From bd583452c7a9d809c973fa2d96fa68666b29a9cb Mon Sep 17 00:00:00 2001 From: Hwurzburg Date: Tue, 10 Aug 2021 18:51:35 -0500 Subject: [PATCH] AP_OSD: fixes bug introduced by #16477 --- libraries/AP_OSD/AP_OSD.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/AP_OSD/AP_OSD.cpp b/libraries/AP_OSD/AP_OSD.cpp index e33c18ddb1..6914822bd0 100644 --- a/libraries/AP_OSD/AP_OSD.cpp +++ b/libraries/AP_OSD/AP_OSD.cpp @@ -423,8 +423,11 @@ void AP_OSD::update_current_screen() case PWM_RANGE: for (int i=0; i channel_value) { + if (previous_pwm_screen == i) { + break; + } else { current_screen = previous_pwm_screen = i; - break; + } } } break;