Commit 4a47382e authored by Arnim Läuger's avatar Arnim Läuger Committed by Marcel Stör
Browse files

align wifi.sta.config table elements connected_cb and disconnected_cb with doc (#2282)

parent 76ae04f8
...@@ -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, "connected_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, "connected_cb:not function");
} }
} }
lua_pop(L, 1); lua_pop(L, 1);
lua_getfield(L, 1, "disconnect_cb"); lua_getfield(L, 1, "disconnected_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, "disconnected_cb:not function");
} }
} }
lua_pop(L, 1); lua_pop(L, 1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment