Browse Source

One more fix to SDIO

pull/1/head
Alexander Efimov 5 years ago
parent
commit
2544b24e43
  1. 2
      Marlin/src/HAL/STM32F1/sdio.cpp

2
Marlin/src/HAL/STM32F1/sdio.cpp

@ -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;
}

Loading…
Cancel
Save