kopia lustrzana https://github.com/micropython/micropython
esp32: Enable VfsMap.
Signed-off-by: Damien George <damien@micropython.org>pull/8381/head
rodzic
8477e891e2
commit
3035029363
|
@ -1,7 +1,14 @@
|
|||
import gc
|
||||
import vfs
|
||||
from esp32 import Partition
|
||||
from flashbdev import bdev
|
||||
|
||||
if mapfs := Partition.find(Partition.TYPE_DATA, label="mapfs"):
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, "/mapfs")
|
||||
del mapfs
|
||||
|
||||
try:
|
||||
if bdev:
|
||||
vfs.mount(bdev, "/")
|
||||
|
|
|
@ -71,6 +71,7 @@
|
|||
#define MICROPY_USE_INTERNAL_PRINTF (0) // ESP32 SDK requires its own printf
|
||||
#define MICROPY_SCHEDULER_DEPTH (8)
|
||||
#define MICROPY_VFS (1)
|
||||
#define MICROPY_VFS_MAP (1)
|
||||
|
||||
// control over Python builtins
|
||||
#define MICROPY_PY_STR_BYTES_CMP_WARN (1)
|
||||
|
|
Ładowanie…
Reference in New Issue