From 2e01ba774da4f3b69960df0b0c86ee434612db30 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Sun, 30 Jun 2024 00:23:17 +0200 Subject: [PATCH] Revert "spectrum: don't check blacklistFreqs if unset" --- app/spectrum.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/spectrum.c b/app/spectrum.c index fd46e8e..c5383cc 100644 --- a/app/spectrum.c +++ b/app/spectrum.c @@ -671,10 +671,9 @@ static void Blacklist() { #ifdef ENABLE_SCAN_RANGES static bool IsBlacklisted(uint16_t idx) { - if(blacklistedFreqs[0]) // cheaper than checking blacklistFreqsIdx - for(uint8_t i = 0; i < ARRAY_SIZE(blacklistFreqs); i++) - if(blacklistFreqs[i] == idx) - return true; + for(uint8_t i = 0; i < ARRAY_SIZE(blacklistFreqs); i++) + if(blacklistFreqs[i] == idx) + return true; return false; } #endif