Fixed EEPROM address for VFO channels.

This commit is contained in:
Dual Tachyon 2023-08-27 22:56:42 +01:00
parent 9ceabe1c0c
commit c0ca552ed2

View File

@ -199,9 +199,9 @@ void RADIO_ConfigureChannel(uint8_t VFO, uint32_t Arg)
gEeprom.VfoInfo[VFO].CHANNEL_SAVE = ChNum;
if (ChNum < 200) {
Base = ChNum << 4;
Base = ChNum * 16;
} else {
Base = 0x0C80 + (ChNum * 32) + (VFO * 16);
Base = 0x0C80 + ((ChNum - 200) * 32) + (VFO * 16);
}
if (Arg == 2 || ChNum >= 200) {