Commit f3167104 authored by dnc40085's avatar dnc40085
Browse files

Fixed error in wifi_station_listap

parent aca2b772
...@@ -545,7 +545,7 @@ static int wifi_station_listap( lua_State* L ) ...@@ -545,7 +545,7 @@ static int wifi_station_listap( lua_State* L )
if( lua_isnumber(L, -1) ) // deal with the ssid string if( lua_isnumber(L, -1) ) // deal with the ssid string
{ {
show_hidden = luaL_checknumber( L, -1); show_hidden = luaL_checknumber( L, -1);
if(show_hidden!=0||show_hidden!=1) if(show_hidden!=0 && show_hidden!=1)
return luaL_error( L, "show_hidden: 0 or 1" ); return luaL_error( L, "show_hidden: 0 or 1" );
scan_cfg.show_hidden=show_hidden; scan_cfg.show_hidden=show_hidden;
c_printf("%d\n", scan_cfg.show_hidden); c_printf("%d\n", scan_cfg.show_hidden);
......
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