Drop third argument from MP_REGISTER_MODULE.
Adopt pattern from
@@ -188,4 +188,10 @@ const mp_obj_module_t ulab_user_cmodule = {
.globals = (mp_obj_dict_t*)&mp_module_ulab_globals,
};
+// Use old three-argument MP_REGISTER_MODULE for
+// MicroPython <= v1.18.0: (1 << 16) | (18 << 8) | 0
+#if MICROPY_VERSION <= 70144
MP_REGISTER_MODULE(MP_QSTR_ulab, ulab_user_cmodule, MODULE_ULAB_ENABLED);
+#else
+MP_REGISTER_MODULE(MP_QSTR_ulab, ulab_user_cmodule);
+#endif
