Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
4a47382e
"components/vscode:/vscode.git/clone" did not exist on "c6a2e996503bbdb74dbcfe50949391fad61a9d2c"
Commit
4a47382e
authored
Mar 01, 2018
by
Arnim Läuger
Committed by
Marcel Stör
Mar 01, 2018
Browse files
align wifi.sta.config table elements connected_cb and disconnected_cb with doc (#2282)
parent
76ae04f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/wifi.c
View file @
4a47382e
...
@@ -849,7 +849,7 @@ static int wifi_station_config( lua_State* L )
...
@@ -849,7 +849,7 @@ static int wifi_station_config( lua_State* L )
lua_State
*
L_temp
=
NULL
;
lua_State
*
L_temp
=
NULL
;
lua_getfield
(
L
,
1
,
"connect_cb"
);
lua_getfield
(
L
,
1
,
"connect
ed
_cb"
);
if
(
!
lua_isnil
(
L
,
-
1
))
if
(
!
lua_isnil
(
L
,
-
1
))
{
{
if
(
lua_isfunction
(
L
,
-
1
))
if
(
lua_isfunction
(
L
,
-
1
))
...
@@ -862,12 +862,12 @@ static int wifi_station_config( lua_State* L )
...
@@ -862,12 +862,12 @@ static int wifi_station_config( lua_State* L )
}
}
else
else
{
{
return
luaL_argerror
(
L
,
1
,
"connect_cb:not function"
);
return
luaL_argerror
(
L
,
1
,
"connect
ed
_cb:not function"
);
}
}
}
}
lua_pop
(
L
,
1
);
lua_pop
(
L
,
1
);
lua_getfield
(
L
,
1
,
"disconnect_cb"
);
lua_getfield
(
L
,
1
,
"disconnect
ed
_cb"
);
if
(
!
lua_isnil
(
L
,
-
1
))
if
(
!
lua_isnil
(
L
,
-
1
))
{
{
if
(
lua_isfunction
(
L
,
-
1
))
if
(
lua_isfunction
(
L
,
-
1
))
...
@@ -880,7 +880,7 @@ static int wifi_station_config( lua_State* L )
...
@@ -880,7 +880,7 @@ static int wifi_station_config( lua_State* L )
}
}
else
else
{
{
return
luaL_argerror
(
L
,
1
,
"disconnect_cb:not function"
);
return
luaL_argerror
(
L
,
1
,
"disconnect
ed
_cb:not function"
);
}
}
}
}
lua_pop
(
L
,
1
);
lua_pop
(
L
,
1
);
...
...
Write
Preview
Markdown
is supported
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