Skip to content

Commit f30b32e

Browse files
committed
esp32/modules: Create ffat partition object with block_size=512.
Because these are formatted with a 512 sector size. Signed-off-by: Damien George <[email protected]>
1 parent 106a83d commit f30b32e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/esp32/modules/flashbdev.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# MicroPython's partition table uses "vfs", TinyUF2 uses "ffat".
44
bdev = Partition.find(Partition.TYPE_DATA, label="vfs")
55
if not bdev:
6-
bdev = Partition.find(Partition.TYPE_DATA, label="ffat")
6+
bdev = Partition.find(Partition.TYPE_DATA, label="ffat", block_size=512)
77
bdev = bdev[0] if bdev else None

0 commit comments

Comments
 (0)