mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-01 13:00:59 +02:00
Change size of fatfs ioctl returns
This commit is contained in:
@ -628,10 +628,10 @@ DRESULT ff_sd_ioctl(uint8_t pdrv, uint8_t cmd, void* buff)
|
|||||||
*((unsigned long*) buff) = s_cards[pdrv]->sectors;
|
*((unsigned long*) buff) = s_cards[pdrv]->sectors;
|
||||||
return RES_OK;
|
return RES_OK;
|
||||||
case GET_SECTOR_SIZE:
|
case GET_SECTOR_SIZE:
|
||||||
*((unsigned long*) buff) = 512;
|
*((WORD*) buff) = 512;
|
||||||
return RES_OK;
|
return RES_OK;
|
||||||
case GET_BLOCK_SIZE:
|
case GET_BLOCK_SIZE:
|
||||||
*((unsigned long*)buff) = 1;
|
*((uint32_t*)buff) = 1;
|
||||||
return RES_OK;
|
return RES_OK;
|
||||||
}
|
}
|
||||||
return RES_PARERR;
|
return RES_PARERR;
|
||||||
|
Reference in New Issue
Block a user