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.
md1702
vk7js 2022-09-21 19:17:51 +10:00 zatwierdzone przez Silvano Seva
rodzic c2f349c93d
commit 3ea4431b35
2 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

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

Wyświetl plik

@ -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)
{