From cdaa0631883fc5ac2d6a3f6782eeba0c1463d8e0 Mon Sep 17 00:00:00 2001 From: bsongis Date: Fri, 30 Nov 2012 06:30:54 +0000 Subject: [PATCH] [DEBUG] Issue 162 fixed (Test function - while 1; to test the WDT - was not removed). Test label badly displayed when GVARS disabled. --- src/model_menus.cpp | 4 ++++ src/open9x.cpp | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) 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