blob: c3f75c7a7e8e123c614a33f88eeebaee36b01e09 (
plain)
1
2
3
4
5
6
7
|
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
|