diff options
| -rw-r--r-- | ports/javascript/modutime.c | 2 | ||||
| -rw-r--r-- | ports/javascript/mpconfigport.h | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/ports/javascript/modutime.c b/ports/javascript/modutime.c index 05ff8b22f..92ddd4729 100644 --- a/ports/javascript/modutime.c +++ b/ports/javascript/modutime.c @@ -54,3 +54,5 @@ const mp_obj_module_t mp_module_utime = { .base = { &mp_type_module }, .globals = (mp_obj_dict_t *)&time_module_globals, }; + +MP_REGISTER_MODULE(MP_QSTR_utime, mp_module_utime, 1); diff --git a/ports/javascript/mpconfigport.h b/ports/javascript/mpconfigport.h index d1bfbbd60..1d356a0a2 100644 --- a/ports/javascript/mpconfigport.h +++ b/ports/javascript/mpconfigport.h @@ -126,11 +126,6 @@ #define MP_SSIZE_MAX (0x7fffffff) -extern const struct _mp_obj_module_t mp_module_utime; - -#define MICROPY_PORT_BUILTIN_MODULES \ - { MP_ROM_QSTR(MP_QSTR_utime), MP_ROM_PTR(&mp_module_utime) }, \ - // #define MICROPY_EVENT_POLL_HOOK {ets_event_poll();} #if MICROPY_PY_THREAD #define MICROPY_EVENT_POLL_HOOK \ |
