kopia lustrzana https://github.com/OpenRTX/OpenRTX
Implemented speech feedback for setting UTC timezone.
Added speaking of negative sign for vp_queueInteger (plus is assumed if not negative).md1702
rodzic
9a250ec994
commit
95b7707d87
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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(¤tLanguage->UTCTimeZone,
|
||||
queueFlags,
|
||||
state.settings.utc_timezone);
|
||||
break;
|
||||
default:
|
||||
state.ui_screen = SETTINGS_GPS;
|
||||
|
|
Ładowanie…
Reference in New Issue