Fix pull request #152
This commit is contained in:
@@ -671,6 +671,7 @@ static void Blacklist() {
|
|||||||
#ifdef ENABLE_SCAN_RANGES
|
#ifdef ENABLE_SCAN_RANGES
|
||||||
static bool IsBlacklisted(uint16_t idx)
|
static bool IsBlacklisted(uint16_t idx)
|
||||||
{
|
{
|
||||||
|
if(blacklistFreqs[0]) // cheaper than checking blacklistFreqsIdx
|
||||||
for(uint8_t i = 0; i < ARRAY_SIZE(blacklistFreqs); i++)
|
for(uint8_t i = 0; i < ARRAY_SIZE(blacklistFreqs); i++)
|
||||||
if(blacklistFreqs[i] == idx)
|
if(blacklistFreqs[i] == idx)
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user