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

This commit is contained in:
Arnim Läuger 2018-03-01 11:50:14 +01:00 committed by Marcel Stör
parent 76ae04f8a7
commit 4a47382e0f
1 changed files with 4 additions and 4 deletions

View File

@ -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 )
} }
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 )
} }
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);