This commit is contained in:
andreika-git 2024-03-19 20:56:38 +02:00 committed by rusefillc
parent b3084a4207
commit 940659439c
1 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,7 @@ int main(void) {
blt_bool stayInBootloader = checkIfRebootIntoOpenBltRequested(); blt_bool stayInBootloader = checkIfRebootIntoOpenBltRequested();
blt_bool wasConnected = BLT_FALSE; blt_bool wasConnected = BLT_FALSE;
while (true) { while (true) {
#if (BOOT_BACKDOOR_ENTRY_TIMEOUT_MS > 0)
BootTask(); BootTask();
// since BOOT_BACKDOOR_HOOKS_ENABLE==TRUE, BackDoorCheck() is not working // since BOOT_BACKDOOR_HOOKS_ENABLE==TRUE, BackDoorCheck() is not working
@ -96,6 +97,7 @@ int main(void) {
wasConnected = BLT_TRUE; wasConnected = BLT_TRUE;
continue; continue;
} }
#endif // BOOT_BACKDOOR_ENTRY_TIMEOUT_MS
if (stayInBootloader) if (stayInBootloader)
continue; continue;
blt_bool isTimeout = (TIME_I2MS(chVTGetSystemTime()) >= BOOT_BACKDOOR_ENTRY_TIMEOUT_MS); blt_bool isTimeout = (TIME_I2MS(chVTGetSystemTime()) >= BOOT_BACKDOOR_ENTRY_TIMEOUT_MS);