mirror of https://github.com/rusefi/rusefi.git
revert faster start for delay=0 https://github.com/rusefi/rusefi/issues/6246
This commit is contained in:
parent
837ce54faa
commit
c7799d482e
|
@ -84,13 +84,10 @@ int main(void) {
|
||||||
// Init openblt itself
|
// Init openblt itself
|
||||||
BootInit();
|
BootInit();
|
||||||
|
|
||||||
#if (BOOT_BACKDOOR_ENTRY_TIMEOUT_MS > 0)
|
|
||||||
blt_bool stayInBootloader = checkIfRebootIntoOpenBltRequested();
|
blt_bool stayInBootloader = checkIfRebootIntoOpenBltRequested();
|
||||||
blt_bool wasConnected = BLT_FALSE;
|
blt_bool wasConnected = BLT_FALSE;
|
||||||
#endif // BOOT_BACKDOOR_ENTRY_TIMEOUT_MS
|
|
||||||
|
|
||||||
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
|
||||||
|
@ -103,9 +100,6 @@ int main(void) {
|
||||||
if (stayInBootloader || wasConnected)
|
if (stayInBootloader || wasConnected)
|
||||||
continue;
|
continue;
|
||||||
blt_bool isTimeout = (TIME_I2MS(chVTGetSystemTime()) >= BOOT_BACKDOOR_ENTRY_TIMEOUT_MS);
|
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) {
|
if (isTimeout == BLT_TRUE) {
|
||||||
waitedLongerThanTimeout = BLT_TRUE;
|
waitedLongerThanTimeout = BLT_TRUE;
|
||||||
CpuStartUserProgram();
|
CpuStartUserProgram();
|
||||||
|
|
Loading…
Reference in New Issue