mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #4652 from geky/fat-fix-unaligned-ioctl
fatfs: Fix unaligned access in disk_ioctlpull/4754/head
commit
1849370100
|
@ -219,8 +219,8 @@ DRESULT disk_ioctl(BYTE pdrv, BYTE cmd, void *buff)
|
|||
if (_ffs[pdrv] == NULL) {
|
||||
return RES_NOTRDY;
|
||||
} else {
|
||||
DWORD size = _ffs[pdrv]->get_erase_size();
|
||||
*((DWORD*)buff) = size;
|
||||
WORD size = _ffs[pdrv]->get_erase_size();
|
||||
*((WORD*)buff) = size;
|
||||
return RES_OK;
|
||||
}
|
||||
case GET_BLOCK_SIZE:
|
||||
|
|
Loading…
Reference in New Issue