openblt: blinks a few times even with BOOT_BACKDOOR_ENTRY_TIMEOUT_MS=0 #6735

only:two steps forward
This commit is contained in:
rusefi 2024-07-28 15:34:00 -04:00
parent 737b810ed3
commit 05eef8434a
1 changed files with 9 additions and 2 deletions

View File

@ -7,9 +7,16 @@ extern "C" {
#include "rs232.h"
}
extern blt_bool stayInBootloader;
void Rs232Init() {
// Set up USB serial
usb_serial_start();
#if (BOOT_BACKDOOR_ENTRY_TIMEOUT_MS == 0)
if (stayInBootloader || (NvmVerifyChecksum() == BLT_FALSE))
#endif
{
// Set up USB serial
usb_serial_start();
}
}
#define RS232_CTO_RX_PACKET_TIMEOUT_MS (100u)