0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-28 14:21:25 +03:00

Channel delete attribs fix

This commit is contained in:
OneOfEleven 2023-10-19 19:33:26 +01:00
parent 7e707cf99e
commit 80e3255fb6
3 changed files with 6 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View File

@ -448,7 +448,8 @@ void SETTINGS_save_chan_attribs_name(const unsigned int channel, const vfo_info_
EEPROM_WriteBuffer8(0x0D60 + index, g_user_channel_attributes + index);
}
else
{
if (channel <= USER_CHANNEL_LAST)
{ // user channel
const unsigned int index = channel & ~7ul; // eeprom writes are always 8 bytes in length
g_user_channel_attributes[channel] = 0xff;
EEPROM_WriteBuffer8(0x0D60 + index, g_user_channel_attributes + index);