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

fix aircopy

This commit is contained in:
OneOfEleven
2023-11-03 22:49:29 +00:00
parent fca972a2f2
commit 2c007d7e50
7 changed files with 97 additions and 67 deletions

View File

@ -693,7 +693,7 @@ static void AIRCOPY_Key_DIGITS(key_code_t Key, bool key_pressed, bool key_held)
g_another_voice_id = (voice_id_t)Key;
#endif
g_rx_vfo->band = i;
g_rx_vfo->channel_attributes.band = i;
// round the frequency to nearest step size
Frequency = ((Frequency + (g_rx_vfo->step_freq / 2)) / g_rx_vfo->step_freq) * g_rx_vfo->step_freq;