Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Middlewares/Third_Party/FatFs/src/drivers/usbh_diskio_dma_template.c')
-rw-r--r--Middlewares/Third_Party/FatFs/src/drivers/usbh_diskio_dma_template.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Middlewares/Third_Party/FatFs/src/drivers/usbh_diskio_dma_template.c b/Middlewares/Third_Party/FatFs/src/drivers/usbh_diskio_dma_template.c
index a9e6837a9..071b2fe48 100644
--- a/Middlewares/Third_Party/FatFs/src/drivers/usbh_diskio_dma_template.c
+++ b/Middlewares/Third_Party/FatFs/src/drivers/usbh_diskio_dma_template.c
@@ -104,7 +104,7 @@ DRESULT USBH_read(BYTE lun, BYTE *buff, DWORD sector, UINT count)
MSC_LUNTypeDef info;
USBH_StatusTypeDef status = USBH_OK;
- if (((DWORD)buff & 3) && (((HCD_HandleTypeDef *)hUSB_Host.pData)->Init.dma_enable))
+ if ((DWORD)buff & 3)
{
while ((count--)&&(status == USBH_OK))
{
@@ -166,7 +166,7 @@ DRESULT USBH_write(BYTE lun, const BYTE *buff, DWORD sector, UINT count)
MSC_LUNTypeDef info;
USBH_StatusTypeDef status = USBH_OK;
- if (((DWORD)buff & 3) && (((HCD_HandleTypeDef *)hUSB_Host.pData)->Init.dma_enable))
+ if ((DWORD)buff & 3)
{
while (count--)