Skip to content

Commit

Permalink
Merge pull request #92 from kamilsss655/rc19.10
Browse files Browse the repository at this point in the history
Rc19.10
  • Loading branch information
kamilsss655 authored Jan 22, 2024
2 parents 6352e3e + cd51908 commit 047b1fb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
7 changes: 3 additions & 4 deletions app/app.c
Original file line number Diff line number Diff line change
Expand Up @@ -1669,10 +1669,9 @@ static void ProcessKey(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
SETTINGS_SaveChannel(gTxVfo->CHANNEL_SAVE, gEeprom.TX_VFO, gTxVfo, gFlagSaveChannel);
gFlagSaveChannel = false;

RADIO_ConfigureChannel(gEeprom.TX_VFO, VFO_CONFIGURE);
RADIO_SetupRegisters(true);

GUI_SelectNextDisplay(DISPLAY_MAIN);
if (!SCANNER_IsScanning() && gVfoConfigureMode == VFO_CONFIGURE_NONE)
// gVfoConfigureMode is so as we don't wipe out previously setting this variable elsewhere
gVfoConfigureMode = VFO_CONFIGURE;
}
}
else // key pressed or held
Expand Down
2 changes: 1 addition & 1 deletion app/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,5 +238,5 @@ void GENERIC_Key_PTT(bool bKeyPressed)
gUpdateDisplay = true;

//done tx - restore squelch here
gVfoConfigureMode = VFO_CONFIGURE;
RADIO_ConfigureSquelchAndOutputPower(gCurrentVfo);
}
8 changes: 4 additions & 4 deletions app/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,8 @@ static void processFKeyFunction(const KEY_Code_t Key, const bool beep)
RADIO_ApplyTxOffset(gRxVfo);
RADIO_ConfigureSquelchAndOutputPower(gRxVfo);
RADIO_SetupRegisters(true);

//SETTINGS_SaveChannel(channel, gEeprom.RX_VFO, gRxVfo, 1);


gRequestSaveChannel = 1;
gUpdateDisplay = true;
}
}
Expand Down Expand Up @@ -714,7 +713,8 @@ static void MAIN_Key_UP_DOWN(bool bKeyPressed, bool bKeyHeld, int8_t Direction)
}

gTxVfo->freq_config_RX.Frequency = frequency;

BK4819_SetFrequency(frequency);
BK4819_RX_TurnOn();
gRequestSaveChannel = 1;
return;
}
Expand Down
4 changes: 3 additions & 1 deletion driver/backlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ bool backlightOn;
void BACKLIGHT_InitHardware()
{
// 48MHz / 94 / 1024 ~ 500Hz
const uint32_t PWM_FREQUENCY_HZ = 1000;
// kamilsss655: needs to be higher than audible frequency otherwise it will
// be heard on the receiving radio if the screen is dimmed during tx
const uint32_t PWM_FREQUENCY_HZ = 6000;
PWM_PLUS0_CLKSRC |= ((48000000 / 1024 / PWM_FREQUENCY_HZ) << 16);
PWM_PLUS0_PERIOD = 1023;

Expand Down

0 comments on commit 047b1fb

Please sign in to comment.