Fix #170: ChName saves a name with wrong settings when used in frequency mode
This commit is contained in:
4
radio.c
4
radio.c
@@ -379,11 +379,9 @@ void RADIO_ConfigureChannel(const unsigned int VFO, const unsigned int configure
|
||||
|
||||
RADIO_ApplyOffset(pVfo);
|
||||
|
||||
memset(pVfo->Name, 0, sizeof(pVfo->Name));
|
||||
if (IS_MR_CHANNEL(channel))
|
||||
{ // 16 bytes allocated to the channel name but only 10 used, the rest are 0's
|
||||
EEPROM_ReadBuffer(0x0F50 + (channel * 16), pVfo->Name + 0, 8);
|
||||
EEPROM_ReadBuffer(0x0F58 + (channel * 16), pVfo->Name + 8, 2);
|
||||
SETTINGS_FetchChannelName(pVfo->Name, channel);
|
||||
}
|
||||
|
||||
if (!pVfo->FrequencyReverse)
|
||||
|
Reference in New Issue
Block a user