mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-13 17:00:19 +00:00
Minor fix to the LPC example
PUBLISHED_FROM=3a99921093957c2ba9c1a0938fa00b3a29784d81
This commit is contained in:
1 parent
84132b7b2a
commit
9a8a6b53ae
1 file changed
+2
-1
@@ -88,12 +88,13 @@ void handle_eth(struct netif *eth_if) {
|
|||||||
printf("Link up\r\n");
|
printf("Link up\r\n");
|
||||||
} else {
|
} else {
|
||||||
Board_LED_Set(0, false);
|
Board_LED_Set(0, false);
|
||||||
Board_LED_Set(1, false);
|
|
||||||
netif_set_link_down(eth_if);
|
netif_set_link_down(eth_if);
|
||||||
printf("Link down\r\n");
|
printf("Link down\r\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Board_LED_Set(1, (eth_if->dhcp->state == DHCP_BOUND));
|
||||||
|
|
||||||
/* Handle packets as part of this loop, not in the IRQ handler */
|
/* Handle packets as part of this loop, not in the IRQ handler */
|
||||||
lpc_enetif_input(eth_if);
|
lpc_enetif_input(eth_if);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user