diff --git a/src/model_menus.cpp b/src/model_menus.cpp index 3e32b7308..d2b1ad6a6 100644 --- a/src/model_menus.cpp +++ b/src/model_menus.cpp @@ -2821,7 +2821,11 @@ void menuModelCustomFunctions(uint8_t event) } #if defined(DEBUG) else if (sd->func == FUNC_TEST) { +#if defined(GVARS) func_displayed = FUNC_TEST - 16 - NUM_STICKS - MAX_GVARS + 2; +#else + func_displayed = FUNC_TEST - 16 - NUM_STICKS + 1; +#endif } #endif #if defined(GVARS) diff --git a/src/open9x.cpp b/src/open9x.cpp index 72a959fad..561c3f8ff 100644 --- a/src/open9x.cpp +++ b/src/open9x.cpp @@ -619,7 +619,9 @@ int16_t getValue(uint8_t i) else if(i