From f31671044d976f7043a430591d4162b699a1fe32 Mon Sep 17 00:00:00 2001 From: dnc40085 Date: Mon, 11 May 2015 17:59:51 -0700 Subject: [PATCH] Fixed error in wifi_station_listap --- app/modules/wifi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/wifi.c b/app/modules/wifi.c index e2fe6c99..d36b92ec 100644 --- a/app/modules/wifi.c +++ b/app/modules/wifi.c @@ -545,7 +545,7 @@ static int wifi_station_listap( lua_State* L ) if( lua_isnumber(L, -1) ) // deal with the ssid string { 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" ); scan_cfg.show_hidden=show_hidden; c_printf("%d\n", scan_cfg.show_hidden);