From ce260ae786326b9f1e476fa3e580ecf9176889c2 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Tue, 9 Mar 2010 05:15:08 +0000 Subject: Webserver project now uses the board LEDs to indicate the current IP configuration state. Don't double-read data from the attached disk in the incomplete StandaloneProgrammer project when in host mode. --- Projects/Webserver/Lib/DHCPClientApp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Projects/Webserver/Lib/DHCPClientApp.c') diff --git a/Projects/Webserver/Lib/DHCPClientApp.c b/Projects/Webserver/Lib/DHCPClientApp.c index cf512734e5..01cbb7e264 100644 --- 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); uip_setdraddr((uip_ipaddr_t*)&AppState->DHCPClient.DHCPOffer_Data.GatewayIP); - AppState->DHCPClient.CurrentState = DHCP_STATE_AddressLeased; + /* Indicate to the user that we now have a valid IP configuration */ + HaveIPConfiguration = true; + + AppState->DHCPClient.CurrentState = DHCP_STATE_AddressLeased; } break; -- cgit v1.2.3