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

#1188 - HDG not converted when units are imperial (it was done in audio,

not in
lcd)
This commit is contained in:
bsongis 2014-06-06 15:06:25 +02:00
parent 6511ae173d
commit a6c39e83b1

View file

@ -1341,6 +1341,10 @@ void putsTelemetryChannel(xcoord_t x, uint8_t y, uint8_t channel, lcdint_t val,
// no break // no break
#endif #endif
case TELEM_HDG-1:
putsTelemetryValue(x, y, val, UNIT_HDG, att);
break;
default: default:
{ {
uint8_t unit = 1; uint8_t unit = 1;
@ -1350,8 +1354,6 @@ void putsTelemetryChannel(xcoord_t x, uint8_t y, uint8_t channel, lcdint_t val,
unit = channel + 1 - TELEM_ALT; unit = channel + 1 - TELEM_ALT;
if (channel >= TELEM_MIN_ALT-1 && channel <= TELEM_MAX_ALT-1) if (channel >= TELEM_MIN_ALT-1 && channel <= TELEM_MAX_ALT-1)
unit = 0; unit = 0;
if (channel == TELEM_HDG-1)
unit = 3;
putsTelemetryValue(x, y, val, pgm_read_byte(bchunit_ar+unit), att); putsTelemetryValue(x, y, val, pgm_read_byte(bchunit_ar+unit), att);
break; break;
} }