From a46b06714ffe7076ce3acb91e06d6c5929efef8d Mon Sep 17 00:00:00 2001 From: "romolo.manfredini@gmail.com" Date: Thu, 17 May 2012 13:05:49 +0000 Subject: [PATCH] Thr Trace items not displayed correctly --- src/model_menus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model_menus.cpp b/src/model_menus.cpp index c357ddd8b..5bbc5a790 100644 --- a/src/model_menus.cpp +++ b/src/model_menus.cpp @@ -659,7 +659,7 @@ void menuProcModel(uint8_t event) { lcd_putsLeft(y, STR_TTRACE); int8_t idx = 3; - if (g_model.thrTraceSrc > NUM_POTS) idx = NUM_STICKS+NUM_ROTARY_ENCODERS+2+3+NUM_PPM+g_model.thrTraceSrc; + if (g_model.thrTraceSrc > NUM_POTS) idx = NUM_STICKS+NUM_ROTARY_ENCODERS+NUM_STICKS+2+3+NUM_PPM+g_model.thrTraceSrc; else if (g_model.thrTraceSrc > 0) idx = NUM_STICKS+g_model.thrTraceSrc; putsChnRaw(MODEL_PARAM_OFS, y, idx, attr); if (attr) CHECK_INCDEC_MODELVAR(event, g_model.thrTraceSrc, 0, NUM_POTS+NUM_CHNOUT);