0
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:
cloudwindy
2023-10-20 21:40:17 +08:00
parent 989f8cb56e
commit a81ecadfe1
19 changed files with 113 additions and 41 deletions

View File

@ -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;
}