From 95581f8c27fa706f76a1ce4e4b443d06d50a8ee9 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Mon, 9 May 2016 21:55:06 -0700 Subject: [PATCH] FatFs disk_ioctl(GET_BLOCK_SIZE) unimplemented, return correct value. --- .../chibios-portapack/os/various/fatfs_bindings/fatfs_diskio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/chibios-portapack/os/various/fatfs_bindings/fatfs_diskio.c b/firmware/chibios-portapack/os/various/fatfs_bindings/fatfs_diskio.c index 6adcdc20..7f090f16 100755 --- a/firmware/chibios-portapack/os/various/fatfs_bindings/fatfs_diskio.c +++ b/firmware/chibios-portapack/os/various/fatfs_bindings/fatfs_diskio.c @@ -232,7 +232,7 @@ DRESULT disk_ioctl ( *((WORD *)buff) = MMCSD_BLOCK_SIZE; return RES_OK; case GET_BLOCK_SIZE: - *((DWORD *)buff) = 256; /* 512b blocks in one erase block */ + *((DWORD *)buff) = 1; /* Unknown, TODO: implement? */ return RES_OK; #if _USE_ERASE case CTRL_ERASE_SECTOR: