Fixes #1182 - RxBatt removed
This commit is contained in:
@@ -252,11 +252,7 @@ void displayTopBar()
|
||||
/* Rx voltage */
|
||||
lcdint_t voltage = 0;
|
||||
uint8_t channel = 0;
|
||||
if (g_model.frsky.voltsSource == FRSKY_VOLTS_SOURCE_RXBATT) {
|
||||
channel = TELEM_RXBATT-1;
|
||||
voltage = frskyData.analog[TELEM_ANA_RXBATT].value;
|
||||
}
|
||||
else if (g_model.frsky.voltsSource <= FRSKY_VOLTS_SOURCE_A4) {
|
||||
if (g_model.frsky.voltsSource <= FRSKY_VOLTS_SOURCE_A4) {
|
||||
channel = TELEM_A1+g_model.frsky.voltsSource-1;
|
||||
voltage = frskyData.analog[g_model.frsky.voltsSource].value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user