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

Updated TX_UNLOCK menu option, renamed scanner files to remove confusion with freq/chan scanner

This commit is contained in:
OneOfEleven
2023-10-14 14:07:05 +01:00
parent c5859c2bf5
commit ca78b7411c
22 changed files with 76 additions and 58 deletions

View File

@ -148,24 +148,20 @@ int TX_freq_check(const uint32_t Frequency)
switch (g_setting_freq_lock)
{
case FREQ_LOCK_OFF:
#ifdef ENABLE_TX_EVERYWHERE
case FREQ_LOCK_NORMAL:
if (Frequency >= 13600000 && Frequency < 17400000)
return 0;
#else
if (Frequency >= 13600000 && Frequency < 17400000)
if (Frequency >= 17400000 && Frequency < 35000000)
if (g_setting_200_tx_enable)
return 0;
if (Frequency >= 17400000 && Frequency < 35000000)
if (g_setting_200_tx_enable)
return 0;
if (Frequency >= 35000000 && Frequency < 40000000)
if (g_setting_350_tx_enable && g_setting_350_enable)
return 0;
if (Frequency >= 40000000 && Frequency < 47000000)
if (Frequency >= 35000000 && Frequency < 40000000)
if (g_setting_350_tx_enable && g_setting_350_enable)
return 0;
if (Frequency >= 40000000 && Frequency < 47000000)
return 0;
if (Frequency >= 47000000 && Frequency <= 60000000)
if (g_setting_500_tx_enable)
return 0;
if (Frequency >= 47000000 && Frequency <= 60000000)
if (g_setting_500_tx_enable)
return 0;
#endif
break;
case FREQ_LOCK_FCC:
@ -202,6 +198,11 @@ int TX_freq_check(const uint32_t Frequency)
if (Frequency >= 40000000 && Frequency < 43800000)
return 0;
break;
#ifdef ENABLE_TX_UNLOCK
case FREQ_LOCK_TX_UNLOCK:
return 0;
#endif
}
// dis-allowed TX frequency