Fix aircopy bypassing TX restrictions & refactor

And scrapes together a few more bytes.
This commit is contained in:
Juan Antonio
2023-12-09 17:06:24 +01:00
committed by egzumer
parent eb6a3d0867
commit 2e69acbdc4
7 changed files with 171 additions and 170 deletions

View File

@@ -223,7 +223,7 @@ int32_t TX_freq_check(const uint32_t Frequency)
break;
case F_LOCK_NONE:
for (uint8_t i = 0; i < ARRAY_SIZE(frequencyBandTable); i++)
for (uint32_t i = 0; i < ARRAY_SIZE(frequencyBandTable); i++)
if (Frequency >= frequencyBandTable[i].lower && Frequency < frequencyBandTable[i].upper)
return 0;
break;