From c6c8bd84a0b3721e6d533f20be2b9e410fbe0e9b Mon Sep 17 00:00:00 2001 From: dnc40085 Date: Mon, 11 May 2015 00:05:28 -0700 Subject: [PATCH] minor change to wifi.sta.config() --- app/modules/wifi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/modules/wifi.c b/app/modules/wifi.c index 64330f34..03948c6f 100644 --- a/app/modules/wifi.c +++ b/app/modules/wifi.c @@ -459,9 +459,8 @@ static int wifi_station_config( lua_State* L ) } else if (lua_isstring(L, 3)&& !(lua_isnumber(L, 3))) { - const char *mactemp=luaL_checklstring( L, 3, &ml ); - lua_pushstring(L, mactemp); - lua_insert(L, 4); + lua_pushnil(L); + lua_insert(L, 3); auto_connect=1; }