Added support for the speaking of callsign when you hit hash key.

Fixed issue of callsign and M17 settings strings being in the wrong order in the string table causing the voice prompts to be switched.
This commit is contained in:
vk7js 2022-09-21 19:17:51 +10:00 committed by Silvano Seva
parent c2f349c93d
commit 3ea4431b35
2 changed files with 9 additions and 1 deletions

View File

@ -85,8 +85,8 @@ typedef struct
const char* toRestoreFlashAnd;
const char* openRTX;
const char* gpsSettings;
const char* callsign;
const char* m17settings;
const char* callsign;
const char* resetToDefaults;
const char* toReset;
const char* pressEnterTwice;

View File

@ -1280,6 +1280,9 @@ void ui_updateFSM(bool *sync_rtx)
_ui_textInputConfirm(ui_state.new_callsign);
// Save selected dst ID and disable input mode
strncpy(state.m17_data.dst_addr, ui_state.new_callsign, 10);
vp_announceBuffer(&currentLanguage->callsign,
false, true,
state.m17_data.dst_addr);
ui_state.edit_mode = false;
*sync_rtx = true;
}
@ -1287,6 +1290,8 @@ void ui_updateFSM(bool *sync_rtx)
{
// Save selected dst ID and disable input mode
strncpy(state.m17_data.dst_addr, "", 1);
vp_announceBuffer(&currentLanguage->callsign,
false, true, "-");
ui_state.edit_mode = false;
*sync_rtx = true;
}
@ -1333,6 +1338,9 @@ void ui_updateFSM(bool *sync_rtx)
ui_state.edit_mode = true;
// Reset text input variables
_ui_textInputReset(ui_state.new_callsign);
vp_announceBuffer(&currentLanguage->callsign,
true, true,
"");
}
else if(msg.keys & KEY_UP || msg.keys & KNOB_RIGHT)
{