1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 17:25:13 +03:00

Offsets should not be taken into account in Bars / Values in the Main Views (idea from Cam, thanks!)

This commit is contained in:
bsongis 2012-04-12 06:50:01 +00:00
parent 3279b2ef67
commit b87f321cae
2 changed files with 3 additions and 2 deletions

View file

@ -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<NUM_ROTARY_ENCODERS; i++) {
int16_t val = getRotaryEncoder(i);
int8_t len = limit((int16_t)0, (int16_t)(((val+1024) * BAR_HEIGHT) / 2048), (int16_t)BAR_HEIGHT);
#if defined(MOD_EXTRA_ROTARY_ENCODERS)