Commit 1b4e3581 authored by schneider's avatar schneider Committed by Rahix
Browse files

fix(diskio): Return correct sector count

parent 8b937b4e
......@@ -238,7 +238,7 @@ DRESULT disk_ioctl (
break;
case GET_SECTOR_COUNT:
/* Mandatory */
*((DWORD *)buff) = mx25_size() / SECTOR_SIZE;
*((DWORD *)buff) = mx25_size();
status = RES_OK;
break;
case GET_BLOCK_SIZE:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment