0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-20 06:58:39 +03:00

improve TX offset menu function

This commit is contained in:
OneOfEleven
2023-11-03 10:39:43 +00:00
parent 7e5605cd18
commit 5ca9733a4c
10 changed files with 98 additions and 106 deletions

View File

@ -63,7 +63,7 @@ bool RADIO_CheckValidChannel(uint16_t Channel, bool bCheckScanList, uint8_t VFO)
if (Channel > USER_CHANNEL_LAST)
return false;
if (g_user_channel_attributes[Channel].band > BAND7_470MHz)
if (g_eeprom.config.channel_attributes[Channel].band > BAND7_470MHz)
return false;
if (bCheckScanList)
@ -71,7 +71,7 @@ bool RADIO_CheckValidChannel(uint16_t Channel, bool bCheckScanList, uint8_t VFO)
switch (VFO)
{
case 0:
if (g_user_channel_attributes[Channel].scanlist1 == 0)
if (g_eeprom.config.channel_attributes[Channel].scanlist1 == 0)
return false;
for (i = 0; i < 2; i++)
@ -79,7 +79,7 @@ bool RADIO_CheckValidChannel(uint16_t Channel, bool bCheckScanList, uint8_t VFO)
break;
case 1:
if (g_user_channel_attributes[Channel].scanlist2 == 0)
if (g_eeprom.config.channel_attributes[Channel].scanlist2 == 0)
return false;
for (i = 0; i < 2; i++)
@ -208,7 +208,7 @@ void RADIO_configure_channel(const unsigned int VFO, const unsigned int configur
chan = CHANNEL_NUM(channel, VFO);
attributes = g_user_channel_attributes[channel];
attributes = g_eeprom.config.channel_attributes[channel];
#if defined(ENABLE_UART) && defined(ENABLE_UART_DEBUG)
// UART_printf("config chan 1 %u %u %u %u %u\r\n", channel, chan, attributes.band, attributes.scanlist1, attributes.scanlist2);