mirror of
https://github.com/kamilsss655/uv-k5-firmware-custom
synced 2024-11-22 10:18:15 +00:00
Restored keep channel name when (re)saving a channel
This commit is contained in:
parent
7582bec615
commit
b54b8ba638
@ -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;
|
||||
|
||||
|
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
14
settings.c
14
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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user