mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-19 14:48:03 +03:00
Restored keep channel name when (re)saving a channel
This commit is contained in:
@ -500,7 +500,7 @@ void MENU_AcceptSetting(void)
|
|||||||
// save the channel name
|
// save the channel name
|
||||||
memset(gTxVfo->Name, 0xff, sizeof(gTxVfo->Name));
|
memset(gTxVfo->Name, 0xff, sizeof(gTxVfo->Name));
|
||||||
memmove(gTxVfo->Name, edit, 10);
|
memmove(gTxVfo->Name, edit, 10);
|
||||||
SETTINGS_SaveChannel(gSubMenuSelection, gEeprom.TX_CHANNEL, gTxVfo, 2);
|
SETTINGS_SaveChannel(gSubMenuSelection, gEeprom.TX_CHANNEL, gTxVfo, 3);
|
||||||
gFlagReconfigureVfos = true;
|
gFlagReconfigureVfos = true;
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
@ -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(0x0F50 + OffsetMR, State8);
|
||||||
EEPROM_WriteBuffer(0x0F58 + OffsetMR, State8);
|
EEPROM_WriteBuffer(0x0F58 + OffsetMR, State8);
|
||||||
#else
|
#else
|
||||||
// save the channel name
|
if (Mode >= 3)
|
||||||
|
{ // save the channel name
|
||||||
memmove(State8, pVFO->Name + 0, 8);
|
memmove(State8, pVFO->Name + 0, 8);
|
||||||
EEPROM_WriteBuffer(0x0F50 + OffsetMR, State8);
|
EEPROM_WriteBuffer(0x0F50 + OffsetMR, State8);
|
||||||
memset(State8, 0xFF, sizeof(State8));
|
memset(State8, 0xFF, sizeof(State8));
|
||||||
memmove(State8, pVFO->Name + 8, 2);
|
memmove(State8, pVFO->Name + 8, 2);
|
||||||
EEPROM_WriteBuffer(0x0F58 + OffsetMR, State8);
|
EEPROM_WriteBuffer(0x0F58 + OffsetMR, State8);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user