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

F-CAL hidden meni compile option added + BATCAL menu range adjust range increased

This commit is contained in:
OneOfEleven
2023-10-02 20:52:18 +01:00
parent c59e0ea06c
commit bf2564b9f5
11 changed files with 115 additions and 101 deletions

13
main.c
View File

@ -110,10 +110,19 @@ void Main(void)
gMenuListCount++;
if (BootMode == BOOT_MODE_F_LOCK)
gF_LOCK = true; // flag to say use the hidden menu items
{
gF_LOCK = true; // flag to say include the hidden menu items
}
else
gMenuListCount -= 9; // hide the last few menu items
{ // hide the hidden menu items
gMenuListCount -= 9;
#ifndef ENABLE_F_CAL_MENU
gMenuListCount++;
#endif
}
// wait for user to release all butts before moving on
if (!GPIO_CheckBit(&GPIOC->DATA, GPIOC_PIN_PTT) ||
KEYBOARD_Poll() != KEY_INVALID ||