From c0ca552ed292e883f0ca5a2c83a07a548afaf186 Mon Sep 17 00:00:00 2001 From: Dual Tachyon Date: Sun, 27 Aug 2023 22:56:42 +0100 Subject: [PATCH] Fixed EEPROM address for VFO channels. --- radio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radio.c b/radio.c index c971448..4fb2baa 100644 --- a/radio.c +++ b/radio.c @@ -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) {