openblt: blinks a few times even with BOOT_BACKDOOR_ENTRY_TIMEOUT_MS=0 #6735
only:two steps forward
This commit is contained in:
parent
737b810ed3
commit
05eef8434a
|
@ -7,9 +7,16 @@ extern "C" {
|
||||||
#include "rs232.h"
|
#include "rs232.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern blt_bool stayInBootloader;
|
||||||
|
|
||||||
void Rs232Init() {
|
void Rs232Init() {
|
||||||
// Set up USB serial
|
#if (BOOT_BACKDOOR_ENTRY_TIMEOUT_MS == 0)
|
||||||
usb_serial_start();
|
if (stayInBootloader || (NvmVerifyChecksum() == BLT_FALSE))
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
// Set up USB serial
|
||||||
|
usb_serial_start();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#define RS232_CTO_RX_PACKET_TIMEOUT_MS (100u)
|
#define RS232_CTO_RX_PACKET_TIMEOUT_MS (100u)
|
||||||
|
|
Loading…
Reference in New Issue