Improved time/date entry:

1. Now give format as dd/mm/yy before date and hh:mm before time.
2. Say the slash immediately after the 2nd and 4th digits are entered in the date and the colon immediately after the 2nd digit of the time.
3. Removed speaking of the 2nd colon in the time since seconds input is disallowed.
md1702
vk7js 2022-09-06 09:23:54 +10:00 zatwierdzone przez Silvano Seva
rodzic e5de5b96a3
commit 0138d843b1
1 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -483,14 +483,14 @@ static void _ui_timedate_add_digit(datetime_t *timedate, uint8_t pos,
uint8_t number)
{
vp_flush();
if (pos==3 || pos==5)
vp_queueInteger(number);
if (pos == 2 || pos == 4)
vp_queuePrompt(PROMPT_SLASH);
// just indicates separation of date and time.
if (pos==7) // start of time.
vp_queuePrompt(PROMPT_SPACE);
if (pos==9 || pos==11)
if (pos==6) // start of time.
vp_queueString("hh:mm", vpAnnounceCommonSymbols|vpAnnounceLessCommonSymbols);
if (pos == 8)
vp_queuePrompt(PROMPT_COLON);
vp_queueInteger(number);
vp_play();
switch(pos)
@ -1705,7 +1705,7 @@ void ui_updateFSM(bool *sync_rtx)
ui_state.input_position = 0;
memset(&ui_state.new_timedate, 0, sizeof(datetime_t));
vp_announceBuffer(&currentLanguage->timeAndDate,
true, false, "");
true, false, "dd/mm/yy");
}
else if(msg.keys & KEY_ESC)
_ui_menuBack(MENU_SETTINGS);