diff --git a/app/menu.c b/app/menu.c index f2a114e..2cc837c 100644 --- a/app/menu.c +++ b/app/menu.c @@ -500,7 +500,7 @@ void MENU_AcceptSetting(void) // save the channel name memset(gTxVfo->Name, 0xff, sizeof(gTxVfo->Name)); memmove(gTxVfo->Name, edit, 10); - SETTINGS_SaveChannel(gSubMenuSelection, gEeprom.TX_CHANNEL, gTxVfo, 2); + SETTINGS_SaveChannel(gSubMenuSelection, gEeprom.TX_CHANNEL, gTxVfo, 3); gFlagReconfigureVfos = true; return; diff --git a/firmware b/firmware index d6a4c16..bc4a81d 100644 Binary files a/firmware and b/firmware differ diff --git a/firmware.bin b/firmware.bin index a37d428..96e9cda 100644 Binary files a/firmware.bin and b/firmware.bin differ diff --git a/firmware.packed.bin b/firmware.packed.bin index 92c57f4..c53f4ab 100644 Binary files a/firmware.packed.bin and b/firmware.packed.bin differ diff --git a/settings.c b/settings.c index 7837e1e..5ee317d 100644 --- a/settings.c +++ b/settings.c @@ -219,12 +219,14 @@ void SETTINGS_SaveChannel(uint8_t Channel, uint8_t VFO, const VFO_Info_t *pVFO, EEPROM_WriteBuffer(0x0F50 + OffsetMR, State8); EEPROM_WriteBuffer(0x0F58 + OffsetMR, State8); #else - // save the channel name - memmove(State8, pVFO->Name + 0, 8); - EEPROM_WriteBuffer(0x0F50 + OffsetMR, State8); - memset(State8, 0xFF, sizeof(State8)); - memmove(State8, pVFO->Name + 8, 2); - EEPROM_WriteBuffer(0x0F58 + OffsetMR, State8); + if (Mode >= 3) + { // save the channel name + memmove(State8, pVFO->Name + 0, 8); + EEPROM_WriteBuffer(0x0F50 + OffsetMR, State8); + memset(State8, 0xFF, sizeof(State8)); + memmove(State8, pVFO->Name + 8, 2); + EEPROM_WriteBuffer(0x0F58 + OffsetMR, State8); + } #endif } }