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