From 49b53ff15d870807eb58373f17c7856cc17dc30c Mon Sep 17 00:00:00 2001 From: Nunu Date: Sun, 21 Jan 2024 11:38:55 +0100 Subject: [PATCH] cleanup --- app/spectrum.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/spectrum.c b/app/spectrum.c index 9cd3161..df3c9e5 100644 --- a/app/spectrum.c +++ b/app/spectrum.c @@ -414,8 +414,9 @@ static void ToggleRX(bool on) { // turn on CSS tail found interrupt BK4819_WriteRegister(BK4819_REG_3F, BK4819_REG_02_CxCSS_TAIL); } else { -if(appMode!=CHANNEL_MODE) - BK4819_WriteRegister(0x43, GetBWRegValueForScan()); + if(appMode!=CHANNEL_MODE) + BK4819_WriteRegister(0x43, GetBWRegValueForScan()); + isListening = false; } }