Fix qrio named_tuple declaration

This commit is contained in:
Scott Shawcroft 2023-10-25 13:12:37 -07:00
parent 1328299ed3
commit c2f20080de
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA

View File

@ -80,23 +80,7 @@ const mp_obj_namedtuple_type_t qrio_qrinfo_type_obj = {
//|
const mp_obj_namedtuple_type_t qrio_qrposition_type_obj = {
.base = {
.base = {
.type = &mp_type_type
},
.flags = MP_TYPE_FLAG_EXTENDED,
.name = MP_QSTR_QRPosition,
.print = namedtuple_print,
.parent = &mp_type_tuple,
.make_new = namedtuple_make_new,
.attr = namedtuple_attr,
MP_TYPE_EXTENDED_FIELDS(
.unary_op = mp_obj_tuple_unary_op,
.binary_op = mp_obj_tuple_binary_op,
.subscr = mp_obj_tuple_subscr,
.getiter = mp_obj_tuple_getiter,
),
},
NAMEDTUPLE_TYPE_BASE_AND_SLOTS(MP_QSTR_QRPosition),
.n_fields = 9,
.fields = {
MP_QSTR_top_left_x,