Commit a2e357f1 authored by zeroday's avatar zeroday
Browse files

Merge pull request #64 from alonewolfx2/patch-1

for set wifi issue
parents c7e83e50 26a554ff
...@@ -222,7 +222,7 @@ static int ICACHE_FLASH_ATTR wifi_setip( lua_State* L, uint8_t mode ) ...@@ -222,7 +222,7 @@ static int ICACHE_FLASH_ATTR wifi_setip( lua_State* L, uint8_t mode )
ip = parse_key(L, "gateway"); ip = parse_key(L, "gateway");
if(ip!=0) if(ip!=0)
pTempIp.gw.addr = ip; pTempIp.gw.addr = ip;
wifi_station_dhcpc_stop();
lua_pushboolean(L,wifi_set_ip_info(mode, &pTempIp)); lua_pushboolean(L,wifi_set_ip_info(mode, &pTempIp));
return 1; return 1;
} }
......
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