File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,24 +55,6 @@ CFLAGS_MOD += -DCIRCUITPY_ULAB=1 -DMODULE_ULAB_ENABLED=1 -iquote $(TOP)/extmod/u
5555$(BUILD ) /extmod/ulab/code/% .o : CFLAGS += -Wno-missing-declarations -Wno-missing-prototypes -Wno-unused-parameter -Wno-float-equal -Wno-sign-compare -Wno-cast-align -Wno-shadow -DCIRCUITPY
5656endif
5757
58- # External modules written in C.
59- ifneq ($(USER_C_MODULES ) ,)
60- # pre-define USERMOD variables as expanded so that variables are immediate
61- # expanded as they're added to them
62- SRC_USERMOD :=
63- CFLAGS_USERMOD :=
64- LDFLAGS_USERMOD :=
65- $(foreach module, $(wildcard $(USER_C_MODULES)/*/micropython.mk), \
66- $(eval USERMOD_DIR = $(patsubst %/,%,$(dir $(module))))\
67- $(info Including User C Module from $(USERMOD_DIR))\
68- $(eval include $(module))\
69- )
70-
71- SRC_MOD += $(patsubst $(USER_C_MODULES ) /% .c,% .c,$(SRC_USERMOD ) )
72- CFLAGS_MOD += $(CFLAGS_USERMOD )
73- LDFLAGS_MOD += $(LDFLAGS_USERMOD )
74- endif
75-
7658# py object files
7759PY_CORE_O_BASENAME = $(addprefix py/,\
7860 mpstate.o \
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ mp_obj_t camera_imageformat_type_to_obj(camera_imageformat_t format) {
6464 return (mp_obj_t )MP_ROM_PTR (& camera_imageformat_rgb565_obj );
6565 case IMAGEFORMAT_NONE :
6666 default :
67- return ( mp_obj_t ) MP_ROM_PTR ( & mp_const_none_obj ) ;
67+ return MP_ROM_NONE ;
6868 }
6969}
7070
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ mp_obj_t gnss_satellitesystem_type_to_obj(gnss_satellitesystem_t system) {
7676 return (mp_obj_t )MP_ROM_PTR (& gnss_satellitesystem_qzss_l1s_obj );
7777 case SATELLITESYSTEM_NONE :
7878 default :
79- return ( mp_obj_t ) MP_ROM_PTR ( & mp_const_none_obj ) ;
79+ return MP_ROM_NONE ;
8080 }
8181}
8282
You can’t perform that action at this time.
0 commit comments