Skip to content

Commit efee577

Browse files
committed
extmod/machine_pinbase: Fix nanbox build.
MP_ROM_PTR() is only for data structures initialization, code should use MP_OBJ_FROM_PTR().
1 parent e68811d commit efee577

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extmod/machine_pinbase.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ STATIC mp_obj_t pinbase_make_new(const mp_obj_type_t *type, size_t n_args, size_
5151
(void)n_args;
5252
(void)n_kw;
5353
(void)args;
54-
return MP_ROM_PTR(&pinbase_singleton);
54+
return MP_OBJ_FROM_PTR(&pinbase_singleton);
5555
}
5656

5757
mp_uint_t pinbase_ioctl(mp_obj_t obj, mp_uint_t request, uintptr_t arg, int *errcode);

0 commit comments

Comments
 (0)