0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-28 14:21:25 +03:00

5kHz FM deviation adjustment

This commit is contained in:
OneOfEleven 2023-11-29 21:48:02 +00:00
parent 40ebe60cee
commit b49e464b7e
5 changed files with 11 additions and 5 deletions

View File

@ -1586,6 +1586,12 @@ static void MENU_Key_0_to_9(key_code_t Key, bool key_pressed, bool key_held)
{
g_sub_menu_selection = INPUTBOX_value(); // get the current value from the input box
#ifdef ENABLE_FM_DEV_CAL_MENU
if (g_current_function == FUNCTION_TRANSMIT)
if (g_menu_cursor == MENU_TX_FM_DEV_CAL_N || g_menu_cursor == MENU_TX_FM_DEV_CAL_W)
BK4819_set_TX_deviation(g_sub_menu_selection);
#endif
if (g_input_box_index < 4)
{ // not yet enough characters
#ifdef ENABLE_VOICE

Binary file not shown.

Binary file not shown.

2
misc.c
View File

@ -50,7 +50,7 @@ const uint8_t key_input_timeout_500ms = 6000 / 500; // 6 sec
const uint8_t key_debounce_10ms = 30 / 10; // 30ms
const uint8_t key_side_long_press_10ms = 1000 / 10; // 1 second
const uint8_t key_long_press_10ms = 320 / 10; // 320ms
const uint8_t key_repeat_initial_10ms = 320 / 10; // 320ms
const uint8_t key_repeat_initial_10ms = 200 / 10; // 200ms
const uint8_t key_repeat_fastest_10ms = 10 / 10; // 10ms
const uint16_t key_repeat_speedup_10ms = 2500 / 10; // speed-up key repeat once every 2.5 seconds

View File

@ -27,11 +27,11 @@
enum {
FM_DEV_LIMIT_LOWER_NARROW = 700,
FM_DEV_LIMIT_DEFAULT_NARROW = 900,
FM_DEV_LIMIT_UPPER_NARROW = 1100,
FM_DEV_LIMIT_UPPER_NARROW = 1500, // 1100
FM_DEV_LIMIT_LOWER_WIDE = 950,
FM_DEV_LIMIT_DEFAULT_WIDE = 1250,
FM_DEV_LIMIT_UPPER_WIDE = 1500
FM_DEV_LIMIT_LOWER_WIDE = 900,
FM_DEV_LIMIT_DEFAULT_WIDE = 1283,
FM_DEV_LIMIT_UPPER_WIDE = 1600
};
enum mod_mode_e {