From b3084a4207796caaabf90412b66ae8268f41ef16 Mon Sep 17 00:00:00 2001 From: andreika-git Date: Tue, 19 Mar 2024 20:53:12 +0200 Subject: [PATCH] delay=0 for 2chan https://github.com/rusefi/rusefi/issues/6246 --- firmware/config/boards/hellen/alphax-2chan/board.mk | 2 ++ firmware/hw_layer/openblt/blt_conf.h | 1 + 2 files changed, 3 insertions(+) diff --git a/firmware/config/boards/hellen/alphax-2chan/board.mk b/firmware/config/boards/hellen/alphax-2chan/board.mk index 7efba0d661..05669e1fcb 100644 --- a/firmware/config/boards/hellen/alphax-2chan/board.mk +++ b/firmware/config/boards/hellen/alphax-2chan/board.mk @@ -23,3 +23,5 @@ DDEFS += $(PRIMARY_COMMUNICATION_PORT_USART2) DDEFS += -DSTATIC_BOARD_ID=STATIC_BOARD_ID_ALPHAX_2CHAN +# let 2chan start asap +DDEFS += -DBOOT_BACKDOOR_ENTRY_TIMEOUT_MS=0 diff --git a/firmware/hw_layer/openblt/blt_conf.h b/firmware/hw_layer/openblt/blt_conf.h index aab7750f35..5bf488a21d 100644 --- a/firmware/hw_layer/openblt/blt_conf.h +++ b/firmware/hw_layer/openblt/blt_conf.h @@ -190,6 +190,7 @@ #define BOOT_XCP_UPLOAD_ENABLE (0) #ifndef BOOT_BACKDOOR_ENTRY_TIMEOUT_MS +// 500 ms is not enough for USB init but we hope is enough for CAN #define BOOT_BACKDOOR_ENTRY_TIMEOUT_MS (500) #endif