Compare commits
2 Commits
bump3.0.0
...
all-contri
Author | SHA1 | Date | |
---|---|---|---|
f9937546e0 | |||
459eb39e55 |
@ -1 +1 @@
|
|||||||
3.0.0
|
2.5.3
|
||||||
|
@ -46,7 +46,9 @@ int main()
|
|||||||
{
|
{
|
||||||
uint8_t hidmsg[64];
|
uint8_t hidmsg[64];
|
||||||
uint32_t t1 = 0;
|
uint32_t t1 = 0;
|
||||||
|
#ifdef SOLO_HACKER
|
||||||
uint32_t stboot_time = 0;
|
uint32_t stboot_time = 0;
|
||||||
|
#endif
|
||||||
uint32_t boot = 1;
|
uint32_t boot = 1;
|
||||||
|
|
||||||
set_logging_mask(
|
set_logging_mask(
|
||||||
@ -96,6 +98,7 @@ int main()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef SOLO_HACKER
|
||||||
if (!is_bootloader_disabled())
|
if (!is_bootloader_disabled())
|
||||||
{
|
{
|
||||||
stboot_time = millis();
|
stboot_time = millis();
|
||||||
@ -105,6 +108,7 @@ int main()
|
|||||||
goto start_bootloader;
|
goto start_bootloader;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (is_authorized_to_boot() && (boot || is_bootloader_disabled()))
|
if (is_authorized_to_boot() && (boot || is_bootloader_disabled()))
|
||||||
{
|
{
|
||||||
@ -115,8 +119,9 @@ int main()
|
|||||||
|
|
||||||
printf1(TAG_RED,"Not authorized to boot (%08x == %08lx)\r\n", AUTH_WORD_ADDR, *(uint32_t*)AUTH_WORD_ADDR);
|
printf1(TAG_RED,"Not authorized to boot (%08x == %08lx)\r\n", AUTH_WORD_ADDR, *(uint32_t*)AUTH_WORD_ADDR);
|
||||||
}
|
}
|
||||||
|
#ifdef SOLO_HACKER
|
||||||
start_bootloader:
|
start_bootloader:
|
||||||
|
#endif
|
||||||
SystemClock_Config();
|
SystemClock_Config();
|
||||||
init_gpio();
|
init_gpio();
|
||||||
init_millisecond_timer(0);
|
init_millisecond_timer(0);
|
||||||
|
Reference in New Issue
Block a user