mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 08:15:17 +03:00
Negative float numbers badly played in french (thanks Martin!)
This commit is contained in:
parent
ef65a16850
commit
2fcc6a36ef
1 changed files with 5 additions and 5 deletions
|
@ -116,6 +116,11 @@ PLAY_FUNCTION(playNumber, int16_t number, uint8_t unit, uint8_t att)
|
|||
prompts.append(Prompt(GUIDE_00_MILLION, dir=2))
|
||||
*/
|
||||
|
||||
if (number < 0) {
|
||||
PUSH_PROMPT(PROMPT_MOINS);
|
||||
number = -number;
|
||||
}
|
||||
|
||||
int8_t mode = MODE(att);
|
||||
if (mode > 0) {
|
||||
div_t qr = div(number, (mode == 1 ? 10 : 100));
|
||||
|
@ -132,11 +137,6 @@ PLAY_FUNCTION(playNumber, int16_t number, uint8_t unit, uint8_t att)
|
|||
return;
|
||||
}
|
||||
|
||||
if (number < 0) {
|
||||
PUSH_PROMPT(PROMPT_MOINS);
|
||||
number = -number;
|
||||
}
|
||||
|
||||
if (number >= 1000) {
|
||||
if (number >= 2000)
|
||||
PLAY_NUMBER(number / 1000, 0, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue