[Taranis] Meters in PREC1 should not be played as Feet in PREC1
This commit is contained in:
@@ -99,6 +99,12 @@ I18N_PLAY_FUNCTION(en, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
|
|||||||
if (IS_IMPERIAL_ENABLE()) {
|
if (IS_IMPERIAL_ENABLE()) {
|
||||||
if (unit == UNIT_METERS) {
|
if (unit == UNIT_METERS) {
|
||||||
unit = UNIT_FEET;
|
unit = UNIT_FEET;
|
||||||
|
#if defined(CPUARM)
|
||||||
|
if (att & PREC1) {
|
||||||
|
number /= 10;
|
||||||
|
att -= PREC1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unit++;
|
unit++;
|
||||||
|
|||||||
Reference in New Issue
Block a user