Minor change trying to make the mmc_sdio driver more robust

This commit is contained in:
anschrammh 2023-10-19 08:00:25 +02:00
parent 43dc3ce89e
commit 73b0a6f2f3

View File

@ -64,6 +64,11 @@ void mmc_sdio_driver_write_dma_async(uint32_t *data, uint32_t dataLengthInBytes)
if (dataLengthInBytes < 4)
{
APP_LOG_ERROR("send err, data length < 4");
/* Let's call the user DMATransferDoneFuncCb function if any to not stay stuck */
if(DMATransferDoneFuncCb)
{
DMATransferDoneFuncCb(DMATransferDoneArg);
}
return;
}