py/mpconfig: Change the default enable level for the vfs module.

For boards with MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_CORE_FEATURES and up.
This gets samd21 boards working (which need the vfs module in _boot.py),
B_L072Z_LRWAN1, and nrf boards with smaller MCUs that use CORE or BASIC
feature levels.

Signed-off-by: robert-hh <robert@hammelrath.com>
pull/13732/head
robert-hh 2024-02-22 20:50:03 +01:00 zatwierdzone przez Damien George
rodzic d2bcb8597e
commit 8fdcc25eb0
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1746,7 +1746,7 @@ typedef double mp_float_t;
// Whether to provide the "vfs" module
#ifndef MICROPY_PY_VFS
#define MICROPY_PY_VFS (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EXTRA_FEATURES && MICROPY_VFS)
#define MICROPY_PY_VFS (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_CORE_FEATURES && MICROPY_VFS)
#endif
#ifndef MICROPY_PY_WEBSOCKET