esp32/modules: Create ffat partition object with block_size=512.

Because these are formatted with a 512 sector size.

Signed-off-by: Damien George <damien@micropython.org>
pull/8268/head
Damien George 2022-02-07 21:06:05 +11:00
rodzic 106a83de22
commit f30b32e084
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -3,5 +3,5 @@ from esp32 import Partition
# MicroPython's partition table uses "vfs", TinyUF2 uses "ffat".
bdev = Partition.find(Partition.TYPE_DATA, label="vfs")
if not bdev:
bdev = Partition.find(Partition.TYPE_DATA, label="ffat")
bdev = Partition.find(Partition.TYPE_DATA, label="ffat", block_size=512)
bdev = bdev[0] if bdev else None