mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
Merge pull request #2879 from 4712/4way-if_v2.1.0
Increased timeouts for BLHeli32/GigaDevice MCU
This commit is contained in:
parent
2cc1bb309f
commit
2d71acf962
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue