Dhcp层面用了异步,w5500这里就不需要了

This commit is contained in:
Stone 2016-06-27 12:02:27 +00:00
parent ea1c1ea269
commit 2b10f5269c
1 changed files with 4 additions and 3 deletions

View File

@ -764,11 +764,11 @@ bool W5500::EnableDNS()
return true;
}
static void OnDhcpStopTask(void* param)
/*static void OnDhcpStopTask(void* param)
{
auto& net = *(W5500*)param;
if(net.NetReady) net.NetReady(net);
}
}*/
static void OnDhcpStop(W5500& net, Dhcp& dhcp)
{
@ -777,7 +777,8 @@ static void OnDhcpStop(W5500& net, Dhcp& dhcp)
{
//auto callback = (Action)param;
// 防止调用栈太深,另外开任务
if(net.NetReady) Sys.AddTask(OnDhcpStopTask, &net, 0, -1, "网络就绪");
//if(net.NetReady) Sys.AddTask(OnDhcpStopTask, &net, 0, -1, "网络就绪");
if(net.NetReady) net.NetReady(net);
}
}