faster start for delay=0 https://github.com/rusefi/rusefi/issues/6246
This commit is contained in:
parent
b3084a4207
commit
940659439c
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue