From aecf53b3e11844586d1739b5c5962a5072eedc57 Mon Sep 17 00:00:00 2001 From: Benjamin Boy Date: Sun, 11 Dec 2016 10:35:57 +0100 Subject: [PATCH] Fixed a problem with precesion 0,0 0,00 (#4120) When precesion is set to 0,0 or 0,00 and the choosen value is 1,0 or 1,00 following happens: eins meter This is incorrect so i coded another part in the else part of "qr.rem > 0" that checks if qr.quot is 1. If it is following happens now: ein meter --- radio/src/translations/tts_de.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/radio/src/translations/tts_de.cpp b/radio/src/translations/tts_de.cpp index dba65d133..5db557129 100644 --- a/radio/src/translations/tts_de.cpp +++ b/radio/src/translations/tts_de.cpp @@ -136,7 +136,12 @@ I18N_PLAY_FUNCTION(de, playNumber, getvalue_t number, uint8_t unit, uint8_t att) PUSH_NUMBER_PROMPT(qr.rem); } else { - PUSH_NUMBER_PROMPT(qr.quot); + if (qr.quot == 1) { + PUSH_NUMBER_PROMPT(DE_PROMPT_EIN); + } + else { + PUSH_NUMBER_PROMPT(qr.quot); + } } DE_PUSH_UNIT_PROMPT(unit); return;