diff --git a/src/frsky.cpp b/src/frsky.cpp index b7e75a9ed..39c8a008f 100644 --- a/src/frsky.cpp +++ b/src/frsky.cpp @@ -883,7 +883,7 @@ void menuProcFrsky(uint8_t event) if (g_model.frsky.bars[i].source && (51-g_model.frsky.bars[i].barMax) > g_model.frsky.bars[i].barMin) { lcd_putsiAtt(0, bars_height+bars_height+1+i*(bars_height+6), STR_VTELEMBARS, g_model.frsky.bars[i].source, 0); lcd_rect(25, bars_height+6+i*(bars_height+6), 101, bars_height+2); - int16_t value = getValue(CSW_CHOUT_BASE+NUM_CHNOUT+MAX_TIMERS+g_model.frsky.bars[i].source-1); + uint16_t value = getValue(CSW_CHOUT_BASE+NUM_CHNOUT+MAX_TIMERS+g_model.frsky.bars[i].source-1); uint16_t threshold = 0; uint8_t thresholdX = 0; if (g_model.frsky.bars[i].source <= 2)