fix incorrect diskio get GET_BLOCK_SIZE

This commit is contained in:
hathach committed 2018-10-25 23:47:06 +07:00
1 parent 8aef6c96c8
commit c76c4c7027
2 files changed
+3 -4

No files matched your search

@@ -99,7 +99,7 @@ DRESULT disk_ioctl (
switch ( cmd )
{
case GET_SECTOR_COUNT:
*((DWORD*) buff) = flash_qspi_size() / FF_MIN_SS;
*((DWORD*) buff) = (flash_qspi_size() / FF_MIN_SS);
break;
case GET_SECTOR_SIZE:
@@ -107,7 +107,7 @@ DRESULT disk_ioctl (
break;
case GET_BLOCK_SIZE:
*((DWORD*) buff) = FLASH_QSPI_PAGE_SIZE;
*((DWORD*) buff) = FLASH_QSPI_PAGE_SIZE / FF_MIN_SS;
break;
case CTRL_SYNC: