Fix W/N (issue #233)

This commit is contained in:
Armel FAUVEAU committed 2026-03-24 03:49:52 +01:00
1 parent 43c40ae9a0
commit dea747c628
1 file changed
+6 -5
+6 -5
View File
@@ -550,16 +550,17 @@ void ACTION_Ptt(void)
void ACTION_Wn(void)
{
if (gRxVfo->Modulation == MODULATION_AM)
const bool isRx = FUNCTION_IsRx();
VFO_Info_t *pVfo = isRx ? gRxVfo : gTxVfo;
pVfo->CHANNEL_BANDWIDTH = !pVfo->CHANNEL_BANDWIDTH;
if (pVfo->Modulation == MODULATION_AM)
{
BK4819_SetFilterBandwidth(BK4819_FILTER_BW_AM, true);
return;
}
const bool isRx = FUNCTION_IsRx();
VFO_Info_t *pVfo = isRx ? gRxVfo : gTxVfo;
pVfo->CHANNEL_BANDWIDTH = !pVfo->CHANNEL_BANDWIDTH;
uint8_t bw = pVfo->CHANNEL_BANDWIDTH;
#ifdef ENABLE_FEAT_F4HWN_NARROWER