@@ -77,7 +77,7 @@ STATIC mp_obj_t wiznet5k_make_new(const mp_obj_type_t *type, size_t n_args, cons
77
77
};
78
78
mp_arg_val_t args [MP_ARRAY_SIZE (allowed_args )];
79
79
mp_arg_parse_all (n_args , pos_args , kw_args , MP_ARRAY_SIZE (allowed_args ), allowed_args , args );
80
- // XXX check type of ARG_spi?
80
+ // TODO check type of ARG_spi?
81
81
assert_pin (args [ARG_cs ].u_obj , false);
82
82
assert_pin (args [ARG_rst ].u_obj , true); // may be NULL
83
83
@@ -144,6 +144,7 @@ const mp_obj_property_t wiznet5k_dhcp_obj = {
144
144
//| (ip_address, subnet_mask, gateway_address, dns_server)
145
145
//|
146
146
//| Or can be called with the same tuple to set those parameters.
147
+ //| Setting ifconfig parameters turns DHCP off, if it was on.
147
148
//|
148
149
149
150
STATIC mp_obj_t wiznet5k_ifconfig (size_t n_args , const mp_obj_t * args ) {
@@ -160,7 +161,7 @@ STATIC mp_obj_t wiznet5k_ifconfig(size_t n_args, const mp_obj_t *args) {
160
161
return mp_obj_new_tuple (4 , tuple );
161
162
} else {
162
163
// set
163
- // XXX should this automatically stop DHCP here?
164
+ wiznet5k_stop_dhcp ();
164
165
mp_obj_t * items ;
165
166
mp_obj_get_array_fixed_n (args [1 ], 4 , & items );
166
167
netutils_parse_ipv4_addr (items [0 ], netinfo .ip , NETUTILS_BIG );
0 commit comments