Skip to content

Commit 3174837

Browse files
committed
Fix esp32 build errors
1 parent 21e2dfa commit 3174837

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

shared-bindings/ipaddress/IPv4Address.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,13 @@ STATIC MP_DEFINE_CONST_DICT(ipaddress_ipv4address_locals_dict, ipaddress_ipv4add
190190

191191
const mp_obj_type_t ipaddress_ipv4address_type = {
192192
{ &mp_type_type },
193+
.flags = MP_TYPE_FLAG_FULL,
193194
.name = MP_QSTR_Address,
194195
.make_new = ipaddress_ipv4address_make_new,
196+
.locals_dict = (mp_obj_dict_t *)&ipaddress_ipv4address_locals_dict,
195197
.print = ipaddress_ipv4address_print,
196-
.unary_op = ipaddress_ipv4address_unary_op,
197-
.binary_op = ipaddress_ipv4address_binary_op,
198-
.locals_dict = (mp_obj_dict_t *)&ipaddress_ipv4address_locals_dict
198+
EXTENDED_FIELDS(
199+
.unary_op = ipaddress_ipv4address_unary_op,
200+
.binary_op = ipaddress_ipv4address_binary_op,
201+
)
199202
};

shared-bindings/socketpool/Socket.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,10 @@ STATIC MP_DEFINE_CONST_DICT(socketpool_socket_locals_dict, socketpool_socket_loc
409409

410410
const mp_obj_type_t socketpool_socket_type = {
411411
{ &mp_type_type },
412+
.flags = MP_TYPE_FLAG_FULL,
412413
.name = MP_QSTR_Socket,
413414
.locals_dict = (mp_obj_dict_t *)&socketpool_socket_locals_dict,
414-
.unary_op = socketpool_socket_unary_op,
415+
EXTENDED_FIELDS(
416+
.unary_op = socketpool_socket_unary_op,
417+
)
415418
};

shared-bindings/ssl/SSLSocket.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,10 @@ STATIC MP_DEFINE_CONST_DICT(ssl_sslsocket_locals_dict, ssl_sslsocket_locals_dict
320320

321321
const mp_obj_type_t ssl_sslsocket_type = {
322322
{ &mp_type_type },
323+
.flags = MP_TYPE_FLAG_FULL,
323324
.name = MP_QSTR_SSLSocket,
324325
.locals_dict = (mp_obj_dict_t *)&ssl_sslsocket_locals_dict,
325-
.unary_op = ssl_sslsocket_unary_op,
326+
EXTENDED_FIELDS(
327+
.unary_op = ssl_sslsocket_unary_op,
328+
)
326329
};

shared-bindings/wifi/ScannedNetworks.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ STATIC mp_obj_t scannednetworks_iternext(mp_obj_t self_in) {
6363

6464
const mp_obj_type_t wifi_scannednetworks_type = {
6565
{ &mp_type_type },
66+
.flags = MP_TYPE_FLAG_FULL,
6667
.name = MP_QSTR_ScannedNetworks,
67-
.getiter = mp_identity_getiter,
68-
.iternext = scannednetworks_iternext,
68+
EXTENDED_FIELDS(
69+
.getiter = mp_identity_getiter,
70+
.iternext = scannednetworks_iternext,
71+
)
6972
};

0 commit comments

Comments
 (0)