From 2d71acf96218883c7c07eb04273da5ec135c27a3 Mon Sep 17 00:00:00 2001 From: 4712 <4712@users.noreply.github.com> Date: Thu, 6 Jul 2017 23:38:13 +0200 Subject: [PATCH] Merge pull request #2879 from 4712/4way-if_v2.1.0 Increased timeouts for BLHeli32/GigaDevice MCU --- src/main/io/serial_4way_avrootloader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/io/serial_4way_avrootloader.c b/src/main/io/serial_4way_avrootloader.c index 9ffa40979..3b711a1c5 100644 --- a/src/main/io/serial_4way_avrootloader.c +++ b/src/main/io/serial_4way_avrootloader.c @@ -311,7 +311,7 @@ uint8_t BL_PageErase(ioMem_t *pMem) if (BL_SendCMDSetAddress(pMem)) { uint8_t sCMD[] = {CMD_ERASE_FLASH, 0x01}; BL_SendBuf(sCMD, 2); - return (BL_GetACK((1000 / START_BIT_TIMEOUT_MS)) == brSUCCESS); + return (BL_GetACK((1400 / START_BIT_TIMEOUT_MS)) == brSUCCESS); } return 0; } @@ -323,7 +323,7 @@ uint8_t BL_WriteEEprom(ioMem_t *pMem) uint8_t BL_WriteFlash(ioMem_t *pMem) { - return BL_WriteA(CMD_PROG_FLASH, pMem, (40 / START_BIT_TIMEOUT_MS)); + return BL_WriteA(CMD_PROG_FLASH, pMem, (500 / START_BIT_TIMEOUT_MS)); } uint8_t BL_VerifyFlash(ioMem_t *pMem)