From 05fb10b7e35e4e9963cda94264672cd1627565ed Mon Sep 17 00:00:00 2001 From: "bsongis@gmail.com" Date: Sat, 20 Jul 2013 21:42:33 +0000 Subject: [PATCH] [Taranis] Meters in PREC1 should not be played as Feet in PREC1 --- src/translations/tts_en.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/translations/tts_en.cpp b/src/translations/tts_en.cpp index 8c700f9c4..0e926bcf2 100644 --- a/src/translations/tts_en.cpp +++ b/src/translations/tts_en.cpp @@ -99,6 +99,12 @@ I18N_PLAY_FUNCTION(en, playNumber, getvalue_t number, uint8_t unit, uint8_t att) if (IS_IMPERIAL_ENABLE()) { if (unit == UNIT_METERS) { unit = UNIT_FEET; +#if defined(CPUARM) + if (att & PREC1) { + number /= 10; + att -= PREC1; + } +#endif } } unit++;