Skip to content

Commit

Permalink
Implement dummy ioctl, as f_close() unconditionally needs it
Browse files Browse the repository at this point in the history
  • Loading branch information
Sec42 committed Jul 6, 2015
1 parent ce0ebe6 commit a69d1a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion fatfs/diskio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion fatfs/diskio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit a69d1a9

Please sign in to comment.