Minor change trying to make the mmc_sdio driver more robust
This commit is contained in:
parent
43dc3ce89e
commit
73b0a6f2f3
@ -64,6 +64,11 @@ void mmc_sdio_driver_write_dma_async(uint32_t *data, uint32_t dataLengthInBytes)
|
|||||||
if (dataLengthInBytes < 4)
|
if (dataLengthInBytes < 4)
|
||||||
{
|
{
|
||||||
APP_LOG_ERROR("send err, data length < 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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user