Skip to content

Commit ccc371e

Browse files
committed
Don't double-list modules that MP_REGISTER_MODULE
Closes: #5154
1 parent 0553561 commit ccc371e

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

py/circuitpy_mpconfig.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -635,12 +635,7 @@ extern const struct _mp_obj_module_t pwmio_module;
635635
#define PWMIO_MODULE
636636
#endif
637637

638-
#if CIRCUITPY_QRIO
639-
extern const struct _mp_obj_module_t qrio_module;
640-
#define QRIO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_qrio), (mp_obj_t)&qrio_module },
641-
#else
642-
#define QRIO_MODULE
643-
#endif
638+
// CIRCUITPY_QRIO uses MP_REGISTER_MODULE
644639

645640
#if CIRCUITPY_RAINBOWIO
646641
extern const struct _mp_obj_module_t rainbowio_module;

py/objmodule.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,6 @@ STATIC const mp_rom_map_elem_t mp_builtin_module_table[] = {
161161
{ MP_ROM_QSTR(MP_QSTR_builtins), MP_ROM_PTR(&mp_module_builtins) },
162162
{ MP_ROM_QSTR(MP_QSTR_micropython), MP_ROM_PTR(&mp_module_micropython) },
163163

164-
#if MICROPY_PY_ARRAY
165-
{ MP_ROM_QSTR(MP_QSTR_array), MP_ROM_PTR(&mp_module_array) },
166-
#endif
167164
#if MICROPY_PY_IO
168165
#if CIRCUITPY
169166
{ MP_ROM_QSTR(MP_QSTR_io), MP_ROM_PTR(&mp_module_io) },

0 commit comments

Comments
 (0)