Fix #211: AM reception chopping

This commit is contained in:
Krzysiek Egzmont
2023-12-07 20:48:36 +01:00
parent c697596806
commit 13c17ad073
2 changed files with 2 additions and 2 deletions

View File

@@ -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:

View File

@@ -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);