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

Restore wideband weak signal bandwidth (squelch more sensitive), added 5 sec BKLT

This commit is contained in:
OneOfEleven
2023-09-21 12:06:31 +01:00
parent 653a00b89d
commit b02d46f66a
13 changed files with 194 additions and 182 deletions

2
main.c
View File

@ -116,7 +116,7 @@ void Main(void)
{
FUNCTION_Select(FUNCTION_POWER_SAVE);
if (gEeprom.BACKLIGHT < 5)
if (gEeprom.BACKLIGHT < (ARRAY_SIZE(gSubMenu_BACKLIGHT) - 1))
GPIO_ClearBit(&GPIOB->DATA, GPIOB_PIN_BACKLIGHT); // turn the backlight OFF
else
GPIO_SetBit(&GPIOB->DATA, GPIOB_PIN_BACKLIGHT); // turn the backlight ON