Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
e377f3cb
Commit
e377f3cb
authored
Oct 31, 2016
by
Paul Sokolovsky
Browse files
esp8266/modnetwork: config(): Fix copy-paste error in setting "mac".
parent
d60ad5cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
esp8266/modnetwork.c
View file @
e377f3cb
...
...
@@ -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
(
kw
args
->
table
[
i
].
value
,
&
bufinfo
,
MP_BUFFER_READ
);
if
(
bufinfo
.
len
!=
6
)
{
nlr_raise
(
mp_obj_new_exception_msg
(
&
mp_type_ValueError
,
"invalid buffer length"
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment