Merge pull request #2879 from 4712/4way-if_v2.1.0

Increased timeouts for BLHeli32/GigaDevice MCU
This commit is contained in:
4712 2017-07-06 23:38:13 +02:00 committed by mikeller
parent 2cc1bb309f
commit 2d71acf962
1 changed files with 2 additions and 2 deletions

View File

@ -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)