Skip to content
Snippets Groups Projects
Commit 1b4e3581 authored by schneider's avatar schneider Committed by rahix
Browse files

fix(diskio): Return correct sector count

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