mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-19 22:58:04 +03:00
First test
This commit is contained in:
11
main.c
11
main.c
@ -67,6 +67,8 @@ void Main(void)
|
||||
BOARD_Init();
|
||||
UART_Init();
|
||||
|
||||
boot_counter_10ms = 250; // 2.5 sec
|
||||
|
||||
UART_Send(UART_Version, strlen(UART_Version));
|
||||
|
||||
// Not implementing authentic device checks
|
||||
@ -99,19 +101,14 @@ void Main(void)
|
||||
{ // count the number of menu list items
|
||||
unsigned int hidden = 0;
|
||||
gMenuListCount = 0;
|
||||
// while (MenuList[gMenuListCount].name != NULL)
|
||||
while (MenuList[gMenuListCount].name[0] != '\0')
|
||||
{
|
||||
if (MenuList[++gMenuListCount].hidden != 0)
|
||||
hidden++;
|
||||
}
|
||||
// disable the items marked hidden
|
||||
//gMenuListCount -= 8;
|
||||
gMenuListCount -= hidden;
|
||||
gMenuListCount -= 8;
|
||||
//gMenuListCount -= hidden;
|
||||
}
|
||||
|
||||
boot_counter_10ms = 250; // 2.5 sec
|
||||
|
||||
if (!gChargingWithTypeC && !gBatteryDisplayLevel)
|
||||
{
|
||||
FUNCTION_Select(FUNCTION_POWER_SAVE);
|
||||
|
Reference in New Issue
Block a user