Implemented speech feedback for setting UTC timezone.

Added speaking of negative sign for vp_queueInteger (plus is assumed if not negative).
This commit is contained in:
vk7js 2022-09-06 11:07:10 +10:00 committed by Silvano Seva
parent 9a250ec994
commit 95b7707d87
2 changed files with 5 additions and 1 deletions

View File

@ -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);
}

View File

@ -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;