Fix #170: ChName saves a name with wrong settings when used in frequency mode

This commit is contained in:
Krzysiek Egzmont
2023-12-02 23:06:22 +01:00
parent cfa745fda0
commit d944ff4a34
4 changed files with 20 additions and 30 deletions

View File

@@ -501,12 +501,8 @@ void MENU_AcceptSetting(void)
break;
edit[i] = ' ';
}
// save the channel name
memset(gTxVfo->Name, 0, sizeof(gTxVfo->Name));
memmove(gTxVfo->Name, edit, 10);
SETTINGS_SaveChannel(gSubMenuSelection, gEeprom.TX_VFO, gTxVfo, 3);
gFlagReconfigureVfos = true;
SETTINGS_SaveChannelName(gSubMenuSelection, edit);
return;
case MENU_SAVE: