mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-13 10:15:00 +00:00
Minor fix to the LPC example
PUBLISHED_FROM=3a99921093957c2ba9c1a0938fa00b3a29784d81
This commit is contained in:
committed by
Cesanta Bot
parent
84132b7b2a
commit
9a8a6b53ae
@@ -88,12 +88,13 @@ void handle_eth(struct netif *eth_if) {
|
||||
printf("Link up\r\n");
|
||||
} else {
|
||||
Board_LED_Set(0, false);
|
||||
Board_LED_Set(1, false);
|
||||
netif_set_link_down(eth_if);
|
||||
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 */
|
||||
lpc_enetif_input(eth_if);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user