mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-20 06:58:39 +03:00
Keylock can be disabled to save 400 bytes.
This commit is contained in:
@ -51,6 +51,7 @@ void GENERIC_Key_F(bool key_pressed, bool key_held)
|
||||
if (key_held)
|
||||
{ // f-key held
|
||||
|
||||
#ifdef ENABLE_KEYLOCK
|
||||
if (key_pressed && g_screen_to_display != DISPLAY_MENU && g_current_function != FUNCTION_TRANSMIT)
|
||||
{ // toggle the keyboad lock
|
||||
|
||||
@ -66,6 +67,7 @@ void GENERIC_Key_F(bool key_pressed, bool key_held)
|
||||
g_keypad_locked = 4; // 2 second pop-up
|
||||
g_update_display = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user