8000 Merge pull request #5166 from jepler/issue5154 · tannewt/circuitpython@dd5b711 · GitHub
[go: up one dir, main page]

Skip to content

Commit dd5b711

Browse files
authored
Merge pull request micropython#5166 from jepler/issue5154
Don't double-list modules that MP_REGISTER_MODULE
2 parents f9f106b + f1bbf40 commit dd5b711

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

py/circuitpy_mpconfig.h

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

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

647642
#if CIRCUITPY_RAINBOWIO
648643
extern const struct _mp_obj_module_t rainbowio_module;
@@ -930,7 +925,6 @@ extern const struct _mp_obj_module_t msgpack_module;
930925
PS2IO_MODULE \
931926
PULSEIO_MODULE \
932927
PWMIO_MODULE \
933-
QRIO_MODULE \
934928
RAINBOWIO_MODULE \
935929
RANDOM_MODULE \
936930
RE_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)
0