From c9571fe1ea96f617fa7cc0917261cdcde0720dfd Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Mon, 1 Apr 2019 17:54:35 -0400 Subject: [PATCH] ROTARYIO_MODULE mistakenly omitted from module list --- py/circuitpy_mpconfig.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/py/circuitpy_mpconfig.h b/py/circuitpy_mpconfig.h index 7db60a39cb..6da3ae9109 100644 --- a/py/circuitpy_mpconfig.h +++ b/py/circuitpy_mpconfig.h @@ -360,6 +360,13 @@ extern const struct _mp_obj_module_t os_module; #define OS_MODULE_ALT_NAME #endif +#if CIRCUITPY_PEW +extern const struct _mp_obj_module_t pew_module; +#define PEW_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR__pew),(mp_obj_t)&pew_module }, +#else +#define PEW_MODULE +#endif + #if CIRCUITPY_PIXELBUF extern const struct _mp_obj_module_t pixelbuf_module; #define PIXELBUF_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR__pixelbuf),(mp_obj_t)&pixelbuf_module }, @@ -474,13 +481,6 @@ extern const struct _mp_obj_module_t ustack_module; #define USTACK_MODULE #endif -#if CIRCUITPY_PEW -extern const struct _mp_obj_module_t pew_module; -#define PEW_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR__pew),(mp_obj_t)&pew_module }, -#else -#define PEW_MODULE -#endif - // These modules are not yet in shared-bindings, but we prefer the non-uxxx names. #if MICROPY_PY_UERRNO #define ERRNO_MODULE { MP_ROM_QSTR(MP_QSTR_errno), MP_ROM_PTR(&mp_module_uerrno) }, @@ -546,6 +546,7 @@ extern const struct _mp_obj_module_t pew_module; PULSEIO_MODULE \ RANDOM_MODULE \ RE_MODULE \ + ROTARYIO_MODULE \ RTC_MODULE \ SAMD_MODULE \ STAGE_MODULE \