Implemented speech feedback for setting UTC timezone.

Added speaking of negative sign for vp_queueInteger (plus is assumed if not negative).
md1702
vk7js 2022-09-06 11:07:10 +10:00 zatwierdzone przez Silvano Seva
rodzic 9a250ec994
commit 95b7707d87
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -412,6 +412,8 @@ void vp_queueInteger(const int value)
return;
char buf[12] = {0}; // min: -2147483648, max: 2147483647
if (value < 0)
vp_queuePrompt(PROMPT_MINUS);
snprintf(buf, 12, "%d", value);
vp_queueString(buf, 0);
}

Wyświetl plik

@ -1831,7 +1831,9 @@ void ui_updateFSM(bool *sync_rtx)
else if(msg.keys & KEY_RIGHT || msg.keys & KEY_DOWN ||
msg.keys & KNOB_RIGHT)
state.settings.utc_timezone += 1;
// todo announce timezone change
vp_announceSettingsInt(&currentLanguage->UTCTimeZone,
queueFlags,
state.settings.utc_timezone);
break;
default:
state.ui_screen = SETTINGS_GPS;