From 4a47382e0fac6a6d8a201e7cf115da8776d3d4c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnim=20L=C3=A4uger?= Date: Thu, 1 Mar 2018 11:50:14 +0100 Subject: [PATCH] align wifi.sta.config table elements connected_cb and disconnected_cb with doc (#2282) --- app/modules/wifi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/modules/wifi.c b/app/modules/wifi.c index 16b84f81..84f611f6 100644 --- a/app/modules/wifi.c +++ b/app/modules/wifi.c @@ -849,7 +849,7 @@ static int wifi_station_config( lua_State* L ) lua_State* L_temp = NULL; - lua_getfield(L, 1, "connect_cb"); + lua_getfield(L, 1, "connected_cb"); if (!lua_isnil(L, -1)) { if (lua_isfunction(L, -1)) @@ -862,12 +862,12 @@ static int wifi_station_config( lua_State* L ) } else { - return luaL_argerror(L, 1, "connect_cb:not function"); + return luaL_argerror(L, 1, "connected_cb:not function"); } } lua_pop(L, 1); - lua_getfield(L, 1, "disconnect_cb"); + lua_getfield(L, 1, "disconnected_cb"); if (!lua_isnil(L, -1)) { if (lua_isfunction(L, -1)) @@ -880,7 +880,7 @@ static int wifi_station_config( lua_State* L ) } else { - return luaL_argerror(L, 1, "disconnect_cb:not function"); + return luaL_argerror(L, 1, "disconnected_cb:not function"); } } lua_pop(L, 1);