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

Changed backlight times

This commit is contained in:
OneOfEleven
2023-09-11 09:55:59 +01:00
parent 4ea9ff0294
commit be5300d138
6 changed files with 55 additions and 23 deletions

View File

@ -379,13 +379,26 @@ void UI_DisplayMenu(void)
break;
case MENU_ABR:
if (gSubMenuSelection == 0)
strcpy(String, "OFF");
else
if (gSubMenuSelection < 5)
sprintf(String, "%d sec", gSubMenuSelection * 10);
else
strcpy(String, "ON");
#if 0
if (gSubMenuSelection == 0)
strcpy(String, "OFF");
else
if (gSubMenuSelection < 5)
sprintf(String, "%d sec", gSubMenuSelection * 10);
else
strcpy(String, "ON");
#else
switch (gSubMenuSelection)
{
case 0: strcpy(String, "OFF"); break;
case 1: strcpy(String, "10 sec"); break;
case 2: strcpy(String, "20 sec"); break;
case 3: strcpy(String, "40 sec"); break;
case 4: strcpy(String, "80 sec"); break;
case 5: strcpy(String, "ON"); break;
default: strcpy(String, "???"); break;
}
#endif
break;
case MENU_AM: