0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-20 15:08:37 +03:00

Added power-on compile option

This commit is contained in:
OneOfEleven
2023-10-06 00:18:47 +01:00
parent 16c908f0bf
commit f25e0230f0
8 changed files with 27 additions and 10 deletions

14
main.c
View File

@ -174,12 +174,14 @@ void Main(void)
}
}
if (gEeprom.POWER_ON_PASSWORD < 1000000)
{
bIsInLockScreen = true;
UI_DisplayLock();
bIsInLockScreen = false;
}
#ifdef ENABLE_PWRON_PASSWORD
if (gEeprom.POWER_ON_PASSWORD < 1000000)
{
bIsInLockScreen = true;
UI_DisplayLock();
bIsInLockScreen = false;
}
#endif
BOOT_ProcessMode(BootMode);