Skip to content
Snippets Groups Projects
Commit 2c8356c4 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266/modnetwork: require_if(): Report the actual interface required.

parent f81ea630
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ STATIC const wlan_if_obj_t wlan_objs[] = {
STATIC void require_if(mp_obj_t wlan_if, int if_no) {
wlan_if_obj_t *self = MP_OBJ_TO_PTR(wlan_if);
if (self->if_id != if_no) {
error_check(false, "STA required");
error_check(false, if_no == STATION_IF ? "STA required" : "AP required");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment