File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -286,6 +286,14 @@ extern const struct _mp_obj_module_t wiznet_module;
286
286
#define WIZNET_MODULE
287
287
#endif
288
288
289
+ // (u)json depends, perhaps erroneously, on MICROPY_PY_IO
290
+ #if MICROPY_PY_IO
291
+ #define JSON_MODULE { MP_ROM_QSTR(MP_QSTR_json), MP_ROM_PTR(&mp_module_ujson) },
292
+ #define MICROPY_PY_UJSON (1)
293
+ #else
294
+ #define JSON_MODULE
295
+ #endif
296
+
289
297
290
298
#ifndef EXTRA_BUILTIN_MODULES
291
299
#define EXTRA_BUILTIN_MODULES \
@@ -297,6 +305,7 @@ extern const struct _mp_obj_module_t wiznet_module;
297
305
NETWORK_MODULE \
298
306
SOCKET_MODULE \
299
307
WIZNET_MODULE \
308
+ JSON_MODULE \
300
309
{ MP_OBJ_NEW_QSTR(MP_QSTR_rotaryio), (mp_obj_t)&rotaryio_module }, \
301
310
{ MP_OBJ_NEW_QSTR(MP_QSTR_gamepad),(mp_obj_t)&gamepad_module }
302
311
#endif
You can’t perform that action at this time.
0 commit comments