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

fix dual watch bug + other stuff

This commit is contained in:
OneOfEleven
2023-11-02 10:00:51 +00:00
parent b0f105572a
commit 2638d803c0
47 changed files with 1880 additions and 2385 deletions

View File

@ -215,21 +215,22 @@ int FREQUENCY_tx_freq_check(const uint32_t Frequency)
if (Frequency < FREQ_BAND_TABLE[0].lower || Frequency > FREQ_BAND_TABLE[ARRAY_SIZE(FREQ_BAND_TABLE) - 1].upper)
return -1; // TX not allowed outside this range
switch (g_setting_freq_lock)
switch (g_eeprom.config.setting.freq_lock)
{
default:
case FREQ_LOCK_NORMAL:
if (Frequency >= AIR_BAND.upper && Frequency < 17400000)
return 0;
if (Frequency >= 17400000 && Frequency < 35000000)
if (g_setting_174_tx_enable)
if (g_eeprom.config.setting.enable_tx_200)
return 0;
if (Frequency >= 35000000 && Frequency < 40000000)
if (g_setting_350_tx_enable && g_setting_350_enable)
if (g_eeprom.config.setting.enable_tx_350 && g_eeprom.config.setting.enable_350)
return 0;
if (Frequency >= 40000000 && Frequency < 47000000)
return 0;
if (Frequency >= 47000000 && Frequency <= 60000000)
if (g_setting_470_tx_enable)
if (g_eeprom.config.setting.enable_tx_470)
return 0;
break;