FatFs disk_ioctl(GET_BLOCK_SIZE) unimplemented, return correct value.

This commit is contained in:
Jared Boone 2016-05-09 21:55:06 -07:00
parent 03c6c80332
commit 95581f8c27

View File

@ -232,7 +232,7 @@ DRESULT disk_ioctl (
*((WORD *)buff) = MMCSD_BLOCK_SIZE;
return RES_OK;
case GET_BLOCK_SIZE:
*((DWORD *)buff) = 256; /* 512b blocks in one erase block */
*((DWORD *)buff) = 1; /* Unknown, TODO: implement? */
return RES_OK;
#if _USE_ERASE
case CTRL_ERASE_SECTOR: