0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 14:48:03 +03:00

Updated F+4 and F+* scanning

This commit is contained in:
OneOfEleven
2023-10-07 10:59:24 +01:00
parent 85bcb854af
commit 5ac08023b3
4 changed files with 22 additions and 15 deletions

View File

@ -356,7 +356,7 @@ void SCANNER_ProcessKeys(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
void SCANNER_Start(void)
{
uint8_t BackupStep;
uint16_t BackupFrequency;
uint16_t BackupStepFreq;
BK4819_StopScan();
@ -367,13 +367,13 @@ void SCANNER_Start(void)
gRxVfo->CHANNEL_SAVE = FREQ_CHANNEL_FIRST + BAND6_400MHz;
#endif
BackupStep = gRxVfo->STEP_SETTING;
BackupFrequency = gRxVfo->StepFrequency;
BackupStep = gRxVfo->STEP_SETTING;
BackupStepFreq = gRxVfo->StepFrequency;
RADIO_InitInfo(gRxVfo, gRxVfo->CHANNEL_SAVE, gRxVfo->pRX->Frequency);
gRxVfo->STEP_SETTING = BackupStep;
gRxVfo->StepFrequency = BackupFrequency;
gRxVfo->StepFrequency = BackupStepFreq;
RADIO_SetupRegisters(true);