One more fix to SDIO

This commit is contained in:
Alexander Efimov
2020-06-05 20:57:44 +03:00
parent 172fcfac17
commit 2544b24e43

View File

@@ -121,7 +121,7 @@ bool SDIO_ReadBlock_DMA(uint32_t blockAddress, uint8_t *data) {
}
bool SDIO_ReadBlock(uint32_t blockAddress, uint8_t *data) {
uint32_t retries = 3;
uint32_t retries = 10;
while (retries--) if (SDIO_ReadBlock_DMA(blockAddress, data)) return true;
return false;
}