This commit is contained in:
andreika-git 2024-03-21 21:22:45 +02:00 committed by rusefillc
parent 837ce54faa
commit c7799d482e
1 changed files with 0 additions and 6 deletions

View File

@ -84,13 +84,10 @@ int main(void) {
// Init openblt itself
BootInit();
#if (BOOT_BACKDOOR_ENTRY_TIMEOUT_MS > 0)
blt_bool stayInBootloader = checkIfRebootIntoOpenBltRequested();
blt_bool wasConnected = BLT_FALSE;
#endif // BOOT_BACKDOOR_ENTRY_TIMEOUT_MS
while (true) {
#if (BOOT_BACKDOOR_ENTRY_TIMEOUT_MS > 0)
BootTask();
// since BOOT_BACKDOOR_HOOKS_ENABLE==TRUE, BackDoorCheck() is not working
@ -103,9 +100,6 @@ int main(void) {
if (stayInBootloader || wasConnected)
continue;
blt_bool isTimeout = (TIME_I2MS(chVTGetSystemTime()) >= BOOT_BACKDOOR_ENTRY_TIMEOUT_MS);
#else
blt_bool isTimeout = BLT_TRUE;
#endif // BOOT_BACKDOOR_ENTRY_TIMEOUT_MS
if (isTimeout == BLT_TRUE) {
waitedLongerThanTimeout = BLT_TRUE;
CpuStartUserProgram();