Skip to content

Commit 22d92e7

Browse files
committed
Change size of fatfs ioctl returns
1 parent 2f0cfa9 commit 22d92e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: libraries/SD/src/sd_diskio.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -628,10 +628,10 @@ DRESULT ff_sd_ioctl(uint8_t pdrv, uint8_t cmd, void* buff)
628628
*((unsigned long*) buff) = s_cards[pdrv]->sectors;
629629
return RES_OK;
630630
case GET_SECTOR_SIZE:
631-
*((unsigned long*) buff) = 512;
631+
*((WORD*) buff) = 512;
632632
return RES_OK;
633633
case GET_BLOCK_SIZE:
634-
*((unsigned long*)buff) = 1;
634+
*((uint32_t*)buff) = 1;
635635
return RES_OK;
636636
}
637637
return RES_PARERR;

0 commit comments

Comments
 (0)