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

fixed long-press-*/scan beeps

This commit is contained in:
OneOfEleven 2023-10-20 14:17:54 +01:00
parent d3000206d6
commit a77d8d3710
3 changed files with 7 additions and 7 deletions

View File

@ -753,13 +753,7 @@ void MAIN_Key_STAR(bool key_pressed, bool key_held)
ACTION_Scan(false); ACTION_Scan(false);
g_beep_to_play = BEEP_1KHZ_60MS_OPTIONAL; // g_beep_to_play = BEEP_1KHZ_60MS_OPTIONAL;
return;
}
if (g_scan_state_dir != SCAN_STATE_DIR_OFF || g_current_function == FUNCTION_TRANSMIT)
{ // RF scanning or TX'ing
g_beep_to_play = BEEP_500HZ_60MS_DOUBLE_BEEP_OPTIONAL;
return; return;
} }
@ -769,6 +763,12 @@ void MAIN_Key_STAR(bool key_pressed, bool key_held)
return; return;
} }
if (g_scan_state_dir != SCAN_STATE_DIR_OFF || g_current_function == FUNCTION_TRANSMIT)
{ // RF scanning or TX'ing
// g_beep_to_play = BEEP_500HZ_60MS_DOUBLE_BEEP_OPTIONAL;
return;
}
if (!g_fkey_pressed) if (!g_fkey_pressed)
{ // pressed without the F-key { // pressed without the F-key

BIN
firmware.bin Normal file

Binary file not shown.

BIN
firmware.packed.bin Normal file

Binary file not shown.