From 6617a5da6417b746d01f9980d727c72605c8110d Mon Sep 17 00:00:00 2001 From: raphaelcoeffic Date: Sat, 27 May 2023 11:02:20 +0200 Subject: [PATCH] fix: MIXSRC Heli & GVar --- radio/src/gui/gui_common.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/radio/src/gui/gui_common.cpp b/radio/src/gui/gui_common.cpp index 4799a20ed..dbac379fe 100644 --- a/radio/src/gui/gui_common.cpp +++ b/radio/src/gui/gui_common.cpp @@ -219,7 +219,7 @@ bool isSourceAvailable(int source) if (source >= MIXSRC_FIRST_HELI && source <= MIXSRC_LAST_HELI) return false; #else - if (!modelHeliEnabled() && source >= MIXSRC_CYC1 && source <= MIXSRC_CYC3) + if (!modelHeliEnabled() && source >= MIXSRC_FIRST_HELI && source <= MIXSRC_LAST_HELI) return false; #endif @@ -240,10 +240,10 @@ bool isSourceAvailable(int source) } #if !defined(GVARS) - if (source >= MIXSRC_GVAR1 && source <= MIXSRC_LAST_GVAR) + if (source >= MIXSRC_FIRST_GVAR && source <= MIXSRC_LAST_GVAR) return false; #else - if (!modelGVEnabled() && source >= MIXSRC_GVAR1 && source <= MIXSRC_LAST_GVAR) + if (!modelGVEnabled() && source >= MIXSRC_FIRST_GVAR && source <= MIXSRC_LAST_GVAR) return false; #endif