projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Webserver project now uses the board LEDs to indicate the current IP configuration...
[pub/USBasp.git]
/
Projects
/
Webserver
/
Lib
/
DHCPClientApp.c
diff --git
a/Projects/Webserver/Lib/DHCPClientApp.c
b/Projects/Webserver/Lib/DHCPClientApp.c
index
cf51273
..
01cbb7e
100644
(file)
--- a/
Projects/Webserver/Lib/DHCPClientApp.c
+++ b/
Projects/Webserver/Lib/DHCPClientApp.c
@@
-156,7
+156,10
@@
void DHCPClientApp_Callback(void)
uip_setnetmask((uip_ipaddr_t*)&AppState->DHCPClient.DHCPOffer_Data.Netmask);
\r
uip_setdraddr((uip_ipaddr_t*)&AppState->DHCPClient.DHCPOffer_Data.GatewayIP);
\r
\r
uip_setnetmask((uip_ipaddr_t*)&AppState->DHCPClient.DHCPOffer_Data.Netmask);
\r
uip_setdraddr((uip_ipaddr_t*)&AppState->DHCPClient.DHCPOffer_Data.GatewayIP);
\r
\r
- AppState->DHCPClient.CurrentState = DHCP_STATE_AddressLeased;
\r
+ /* Indicate to the user that we now have a valid IP configuration */
\r
+ HaveIPConfiguration = true;
\r
+
\r
+ AppState->DHCPClient.CurrentState = DHCP_STATE_AddressLeased;
\r
}
\r
\r
break;
\r
}
\r
\r
break;
\r