From 13c17ad073c28959e29fce87b21212151bee3f88 Mon Sep 17 00:00:00 2001 From: Krzysiek Egzmont Date: Thu, 7 Dec 2023 20:48:36 +0100 Subject: [PATCH] Fix #211: AM reception chopping --- am_fix.c | 2 +- radio.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/am_fix.c b/am_fix.c index 0d7ca5066..c8dda0036 100644 --- a/am_fix.c +++ b/am_fix.c @@ -313,13 +313,13 @@ void AM_fix_10ms(const unsigned vfo, bool force) case FUNCTION_TRANSMIT: case FUNCTION_BAND_SCOPE: case FUNCTION_POWER_SAVE: - case FUNCTION_FOREGROUND: #ifdef ENABLE_AM_FIX_SHOW_DATA counter = display_update_rate; // queue up a display update as soon as we switch to RX mode #endif return; // only adjust stuff if we're in one of these modes + case FUNCTION_FOREGROUND: case FUNCTION_RECEIVE: case FUNCTION_MONITOR: case FUNCTION_INCOMING: diff --git a/radio.c b/radio.c index 3da46fcf8..a236777b2 100644 --- a/radio.c +++ b/radio.c @@ -773,7 +773,7 @@ void RADIO_SetupRegisters(bool switchToForeground) } #endif - RADIO_SetupAGC(false, false); + RADIO_SetupAGC(gRxVfo->Modulation == MODULATION_AM, false); // enable/disable BK4819 selected interrupts BK4819_WriteRegister(BK4819_REG_3F, InterruptMask);