for set wifi issue

dhcp client must be stop before setting station ip
This commit is contained in:
alonewolfx2 2014-12-30 13:57:08 +02:00
parent 265d27058b
commit 26a554ffe1
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ static int ICACHE_FLASH_ATTR wifi_setip( lua_State* L, uint8_t mode )
ip = parse_key(L, "gateway");
if(ip!=0)
pTempIp.gw.addr = ip;
wifi_station_dhcpc_stop();
lua_pushboolean(L,wifi_set_ip_info(mode, &pTempIp));
return 1;
}