Merge pull request #1138 from oliverschmidt/master
Fix DHCP client retries.
This commit is contained in:
commit
ac3b8b0955
|
@ -116,7 +116,6 @@ PROCESS_THREAD(dhcp_process, ev, data)
|
|||
ctk_window_open(&window);
|
||||
dhcpc_init(uip_lladdr.addr, sizeof(uip_lladdr.addr));
|
||||
|
||||
|
||||
while(1) {
|
||||
PROCESS_WAIT_EVENT();
|
||||
|
||||
|
@ -125,7 +124,7 @@ PROCESS_THREAD(dhcp_process, ev, data)
|
|||
dhcpc_request();
|
||||
set_statustext("Requesting...");
|
||||
}
|
||||
} else if(ev == tcpip_event) {
|
||||
} else if(ev == tcpip_event || ev == PROCESS_EVENT_TIMER) {
|
||||
dhcpc_appcall(ev, data);
|
||||
} else if(ev == PROCESS_EVENT_EXIT ||
|
||||
ev == ctk_signal_window_close) {
|
||||
|
|
|
@ -212,7 +212,7 @@ PROCESS_THREAD(ipconfig_process, ev, data)
|
|||
if(ev == PROCESS_EVENT_MSG) {
|
||||
makestrings();
|
||||
ctk_window_redraw(&window);
|
||||
} else if(ev == tcpip_event) {
|
||||
} else if(ev == tcpip_event || ev == PROCESS_EVENT_TIMER) {
|
||||
dhcpc_appcall(ev, data);
|
||||
} else if(ev == ctk_signal_button_activate) {
|
||||
if(data == (process_data_t)&requestbutton) {
|
||||
|
|
Loading…
Reference in a new issue