mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
Fix pull request #152
This commit is contained in:
1 parent
8f803de3fd
commit
aea31e85f6
1 file changed
+4
-3
+4
-3
@@ -671,9 +671,10 @@ static void Blacklist() {
|
||||
#ifdef ENABLE_SCAN_RANGES
|
||||
static bool IsBlacklisted(uint16_t idx)
|
||||
{
|
||||
for(uint8_t i = 0; i < ARRAY_SIZE(blacklistFreqs); i++)
|
||||
if(blacklistFreqs[i] == idx)
|
||||
return true;
|
||||
if(blacklistFreqs[0]) // cheaper than checking blacklistFreqsIdx
|
||||
for(uint8_t i = 0; i < ARRAY_SIZE(blacklistFreqs); i++)
|
||||
if(blacklistFreqs[i] == idx)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user