Skip to content

Commit d01a981

Browse files
committed
py/mpconfig: Enable io.IOBase at core feature level.
IOBase is quite an important building block of other parts of the system, such as `mpremote mount` and running .mpy and native tests. This feature costs +244 bytes of firmware size on ARM Thumb2 architectures, which is worth the cost for the extra features it enables. The change here means that `io.IOBase` is now enabled on all nrf boards, (previously it was only nRF52840 and nRF9160) and also B_L072Z_LRWAN1 (there is no change to other ports or boards). Signed-off-by: Damien George <[email protected]>
1 parent 9c8c219 commit d01a981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/mpconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ typedef double mp_float_t;
14691469

14701470
// Whether to provide "io.IOBase" class to support user streams
14711471
#ifndef MICROPY_PY_IO_IOBASE
1472-
#define MICROPY_PY_IO_IOBASE (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EXTRA_FEATURES)
1472+
#define MICROPY_PY_IO_IOBASE (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_CORE_FEATURES)
14731473
#endif
14741474

14751475
// Whether to provide "io.BytesIO" class

0 commit comments

Comments
 (0)