diff options
author | Damien George <damien@micropython.org> | 2022-06-10 12:48:14 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-06-10 12:56:30 +1000 |
commit | 203b98c42b535a9c76f914b18dec4e221294b78c (patch) | |
tree | a45c08c44a3fe17755ecf40f6a6dc679009f6d9e /docs/esp8266/tutorial | |
parent | ab6ad867935ea18c67368f5f0f9716421f201af4 (diff) | |
download | micropython-203b98c42b535a9c76f914b18dec4e221294b78c.tar.gz micropython-203b98c42b535a9c76f914b18dec4e221294b78c.zip |
drivers/sdcard: Make ioctl(4), ioctl(5) return num blocks, block size.
For CSD v1.0 the computed size is in bytes, so convert it to number of
512-byte blocks, and then ioctl(4) will return the correct value.
Also implement ioctl(5) to return the block size, which is always 512.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/esp8266/tutorial')
0 files changed, 0 insertions, 0 deletions