diff --git a/fatfs/diskio.c b/fatfs/diskio.c index 9229566d..aa50d7f0 100644 --- a/fatfs/diskio.c +++ b/fatfs/diskio.c @@ -172,7 +172,8 @@ DRESULT disk_ioctl ( #endif // Process of the command for the ATA drive -#error "notimpl" + if(cmd==CTRL_SYNC) + res=RES_OK; return res; #ifdef CFG_HAVE_SD diff --git a/fatfs/diskio.h b/fatfs/diskio.h index 26f127e8..9ca0c7e1 100644 --- a/fatfs/diskio.h +++ b/fatfs/diskio.h @@ -10,7 +10,7 @@ extern "C" { #endif #define _USE_WRITE 1 /* 1: Enable disk_write function */ -#define _USE_IOCTL 0 /* 1: Enable disk_ioctl fucntion */ +#define _USE_IOCTL 1 /* 1: Enable disk_ioctl fucntion */ #include "integer.h"