esp8266/modnetwork: config(): Fix copy-paste error in setting "mac".

This commit is contained in:
Paul Sokolovsky 2016-10-31 00:30:26 +03:00
parent d60ad5cf53
commit e377f3cb40
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ STATIC mp_obj_t esp_config(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs
switch ((uintptr_t)kwargs->table[i].key) {
case QS(MP_QSTR_mac): {
mp_buffer_info_t bufinfo;
mp_get_buffer_raise(args[1], &bufinfo, MP_BUFFER_READ);
mp_get_buffer_raise(kwargs->table[i].value, &bufinfo, MP_BUFFER_READ);
if (bufinfo.len != 6) {
nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError,
"invalid buffer length"));