0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-28 06:11:24 +03:00
This commit is contained in:
OneOfEleven 2023-11-11 13:36:35 +00:00
parent 56aaf876ef
commit ee2cc196dd
4 changed files with 4 additions and 7 deletions

View File

@ -1033,9 +1033,6 @@ void MAIN_Key_UP_DOWN(bool key_pressed, bool key_held, scan_state_dir_t directio
// freq = FREQUENCY_floor_to_step(freq, g_scan_initial_step_size, g_scan_initial_lower, g_scan_initial_upper);
//}
#endif
// if (band == BAND2_108MHz)
// freq = FREQUENCY_floor_to_step(freq, g_scan_initial_step_size, g_scan_initial_lower, g_scan_initial_upper);
}
freq += g_scan_initial_step_size * direction;
@ -1056,7 +1053,7 @@ void MAIN_Key_UP_DOWN(bool key_pressed, bool key_held, scan_state_dir_t directio
// freq = FREQUENCY_floor_to_step(freq, g_scan_initial_step_size, g_scan_initial_lower, g_scan_initial_upper);
#endif
if (band == BAND2_108MHz)
if (band == BAND2_108MHz) // cope with the 8.333kHz step size
freq = FREQUENCY_floor_to_step(freq, g_scan_initial_step_size, g_scan_initial_lower, g_scan_initial_upper);
if (FREQUENCY_rx_freq_check(freq) < 0)

Binary file not shown.

Binary file not shown.

View File

@ -200,8 +200,8 @@ uint32_t FREQUENCY_wrap_to_step_band(uint32_t freq, const uint32_t step_size, co
#ifdef ENABLE_SCAN_RANGES
const freq_scan_range_table_t FREQ_SCAN_RANGE_TABLE[] =
{
{ 2760125, 2800000, 1000},
{ 2696500, 2785600, 1000},
{ 2760125, 2760125 + (1000 * 40), 1000},
{ 2696500, 2696500 + (1000 * 80), 1000},
{ 2600000, 2800000, 1000},
{ 2800000, 2970000, 1000},
{ 5000000, 5200000, 1000},
@ -217,7 +217,7 @@ uint32_t FREQUENCY_wrap_to_step_band(uint32_t freq, const uint32_t step_size, co
{21900000, 22500000, 1500},
{24000000, 39000000, 2500},
{43000000, 44000000, 1250},
{44600625, 44619376, 1250},
{44600625, 44600625 + (1250 * 16), 1250},
{44000000, 47000000, 1250}
};