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

fix mdc crc bug and tx/rx freq bug after using up/dn buttons

This commit is contained in:
OneOfEleven
2023-10-20 22:15:15 +01:00
parent 06a19ee05c
commit 4f6063f492
7 changed files with 96 additions and 44 deletions

View File

@ -16,6 +16,9 @@
#include <string.h>
#ifndef ENABLE_OVERLAY
#include "ARMCM0.h"
#endif
#include "app/aircopy.h"
#include "audio.h"
#include "bsp/dp32g030/gpio.h"

View File

@ -834,6 +834,8 @@ void MAIN_Key_UP_DOWN(bool key_pressed, bool key_held, scan_state_dir_t Directio
}
#endif
g_tx_vfo->freq_config_tx.frequency = g_tx_vfo->freq_config_rx.frequency;
// find the first channel that contains this frequency
g_tx_vfo->frequency_channel = BOARD_find_channel(g_tx_vfo->freq_config_rx.frequency);
@ -904,6 +906,7 @@ void MAIN_Key_UP_DOWN(bool key_pressed, bool key_held, scan_state_dir_t Directio
// save the new frequency into the VFO
g_tx_vfo->freq_config_rx.frequency = frequency;
g_tx_vfo->freq_config_tx.frequency = frequency;
// find the first channel that contains this frequency
//