mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Fixes #1182 - RxBatt removed
This commit is contained in:
parent
123d5c1be8
commit
72dc022dc9
28 changed files with 256 additions and 516 deletions
|
@ -1219,23 +1219,6 @@ void putsTelemetryChannel(xcoord_t x, uint8_t y, uint8_t channel, lcdint_t val,
|
|||
att &= ~NO_UNIT;
|
||||
putsTimer(x, y, val, att, att);
|
||||
break;
|
||||
#if defined(CPUARM)
|
||||
case TELEM_RXBATT-1:
|
||||
val = ((val*1320) + 127) / 255;
|
||||
#if LCD_W >= 212
|
||||
att |= PREC2;
|
||||
#else
|
||||
if (abs(val) < 1000) {
|
||||
att |= PREC2;
|
||||
}
|
||||
else {
|
||||
val = div10_and_round(val);
|
||||
att |= PREC1;
|
||||
}
|
||||
#endif
|
||||
putsTelemetryValue(x, y, val, UNIT_VOLTS, att);
|
||||
break;
|
||||
#endif
|
||||
#if defined(FRSKY)
|
||||
case TELEM_MIN_A1-1:
|
||||
case TELEM_MIN_A2-1:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue