71b3ce3ace
The name of the filesystem partition is updated to support "ffat", as used by TinyUF2. Signed-off-by: Damien George <damien@micropython.org>
8 lines
257 B
Python
8 lines
257 B
Python
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 = bdev[0] if bdev else None
|