mirror of https://github.com/rusefi/rusefi.git
use wasConnected https://github.com/rusefi/rusefi/issues/6246
This commit is contained in:
parent
dd156340b2
commit
837ce54faa
|
@ -84,8 +84,11 @@ 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();
|
||||
|
@ -97,7 +100,7 @@ int main(void) {
|
|||
wasConnected = BLT_TRUE;
|
||||
continue;
|
||||
}
|
||||
if (stayInBootloader)
|
||||
if (stayInBootloader || wasConnected)
|
||||
continue;
|
||||
blt_bool isTimeout = (TIME_I2MS(chVTGetSystemTime()) >= BOOT_BACKDOOR_ENTRY_TIMEOUT_MS);
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue