diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-04-05 16:08:25 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-04-05 16:09:03 +0300 |
commit | 2c8356c482b2bb4eaf7248297b3b68e4a376a90b (patch) | |
tree | 126779e79dc17b8806ec3316fd49a6a6e1c84aa6 /esp8266 | |
parent | f81ea6307c52f4283b95dabe631dacc38c649ffc (diff) | |
download | micropython-2c8356c482b2bb4eaf7248297b3b68e4a376a90b.tar.gz micropython-2c8356c482b2bb4eaf7248297b3b68e4a376a90b.zip |
esp8266/modnetwork: require_if(): Report the actual interface required.
Diffstat (limited to 'esp8266')
-rw-r--r-- | esp8266/modnetwork.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/esp8266/modnetwork.c b/esp8266/modnetwork.c index 015bbb4e94..0aaeb55657 100644 --- a/esp8266/modnetwork.c +++ b/esp8266/modnetwork.c @@ -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"); } } |