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

Unlocked TX still bound by the frequency table.

This commit is contained in:
OneOfEleven
2023-10-18 13:54:43 +01:00
parent 2bd8db1714
commit 2e880a61e1
6 changed files with 14 additions and 9 deletions

View File

@ -208,7 +208,13 @@ int TX_freq_check(const uint32_t Frequency)
#ifdef ENABLE_TX_UNLOCK
case FREQ_LOCK_TX_UNLOCK:
return 0;
{
unsigned int i;
for (i = 0; i < ARRAY_SIZE(FREQ_BAND_TABLE); i++)
if (Frequency >= FREQ_BAND_TABLE[i].lower && Frequency < FREQ_BAND_TABLE[i].upper)
return 0;
break;
}
#endif
}