Skip to content

Commit 2c8356c

Browse files
committed
esp8266/modnetwork: require_if(): Report the actual interface required.
1 parent f81ea63 commit 2c8356c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esp8266/modnetwork.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ STATIC const wlan_if_obj_t wlan_objs[] = {
5858
STATIC void require_if(mp_obj_t wlan_if, int if_no) {
5959
wlan_if_obj_t *self = MP_OBJ_TO_PTR(wlan_if);
6060
if (self->if_id != if_no) {
61-
error_check(false, "STA required");
61+
error_check(false, if_no == STATION_IF ? "STA required" : "AP required");
6262
}
6363
}
6464

0 commit comments

Comments
 (0)