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

This commit is contained in:
Paul Sokolovsky 2016-04-05 16:08:25 +03:00
parent f81ea6307c
commit 2c8356c482
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}
}