[Taranis] Stupid bug with massstorage (sectors count)

This commit is contained in:
bsongis@gmail.com
2013-03-25 21:22:57 +00:00
parent aef84e0063
commit 17cdf85d15
+2 -2
View File
@@ -128,8 +128,8 @@ int8_t STORAGE_GetCapacity (uint8_t lun, uint32_t *block_num, uint32_t *block_si
*block_size = 512;
BYTE sector_count = 0;
if (disk_ioctl(g_FATFS_Obj.drv, GET_SECTOR_COUNT, block_num) != RES_OK)
DWORD sector_count = 0;
if (disk_ioctl(0, GET_SECTOR_COUNT, &sector_count) != RES_OK)
return -1;
*block_num = sector_count;