Skip to content

Commit aa38548

Browse files
authored
Merge pull request #9727 from jepler/fix-assign-wifi-radio-dns-raspi
Fix crash on assignment of wifi.radio.dns on raspberrypi boards
2 parents 7a2da7a + 6a2e674 commit aa38548

File tree

1 file changed

+1
-1
lines changed
  • ports/raspberrypi/common-hal/wifi

1 file changed

+1
-1
lines changed

ports/raspberrypi/common-hal/wifi/Radio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ void common_hal_wifi_radio_set_dns(wifi_radio_obj_t *self, mp_obj_t dns_addrs_ob
574574
addr.addr = IPADDR_NONE;
575575
} else {
576576
mp_obj_t dns_addr_obj = mp_obj_subscr(dns_addrs_obj, MP_OBJ_NEW_SMALL_INT(0), MP_OBJ_SENTINEL);
577-
socketpool_resolve_host_raise(dns_addr_obj, &addr);
577+
socketpool_resolve_host_raise(mp_obj_str_get_str(dns_addr_obj), &addr);
578578
}
579579
dns_setserver(0, &addr);
580580
}

0 commit comments

Comments
 (0)