From b87f321cae146b474a88c7ae6483e0db2f140fd0 Mon Sep 17 00:00:00 2001 From: bsongis Date: Thu, 12 Apr 2012 06:50:01 +0000 Subject: [PATCH] Offsets should not be taken into account in Bars / Values in the Main Views (idea from Cam, thanks!) --- src/main_views.cpp | 4 ++-- src/open9x.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main_views.cpp b/src/main_views.cpp index dca7f2f4d..6c2a93bfd 100644 --- a/src/main_views.cpp +++ b/src/main_views.cpp @@ -239,7 +239,7 @@ void menuMainView(uint8_t event) for(uint8_t i=0; i<8; i++) { uint8_t x0,y0; - int16_t val = g_chans512[i]; + int16_t val = ex_chans[i]; //val += g_model.limitData[i].revert ? g_model.limitData[i].offset : -g_model.limitData[i].offset; switch(view_base) { @@ -301,7 +301,7 @@ void menuMainView(uint8_t event) #endif } #if defined(PCBV4) - for (uint8_t i=0; i<(NUM_ROTARY_ENCODERS); i++) { + for (uint8_t i=0; i