Skip to content

Commit e377f3c

Browse files
committed
esp8266/modnetwork: config(): Fix copy-paste error in setting "mac".
1 parent d60ad5c commit e377f3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

esp8266/modnetwork.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ STATIC mp_obj_t esp_config(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs
295295
switch ((uintptr_t)kwargs->table[i].key) {
296296
case QS(MP_QSTR_mac): {
297297
mp_buffer_info_t bufinfo;
298-
mp_get_buffer_raise(args[1], &bufinfo, MP_BUFFER_READ);
298+
mp_get_buffer_raise(kwargs->table[i].value, &bufinfo, MP_BUFFER_READ);
299299
if (bufinfo.len != 6) {
300300
nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError,
301301
"invalid buffer length"));

0 commit comments

Comments
 (0)