Messages for network

This commit is contained in:
simon.kagstrom 2010-03-06 15:21:44 +00:00
parent 44625b2daa
commit ac2cf3d847

View File

@ -87,11 +87,13 @@ void Network::InitNetwork()
{ {
char myIP[16]; char myIP[16];
Gui::gui->status_bar->queueMessage("Getting IP address via DHCP...");
/* Try twice */ /* Try twice */
if (if_config(myIP, NULL, NULL, true) < 0) { if (if_config(myIP, NULL, NULL, true) < 0) {
if (if_config(myIP, NULL, NULL, true) < 0) if (if_config(myIP, NULL, NULL, true) < 0)
Gui::gui->status_bar->queueMessage("No DHCP reply"); Gui::gui->status_bar->queueMessage("No DHCP reply");
} }
Gui::gui->status_bar->queueMessage("Got an address");
} }
void Network::ShutdownNetwork() void Network::ShutdownNetwork()