Commit 9a8a6b53 authored by Deomid Ryabkov's avatar Deomid Ryabkov Committed by Cesanta Bot

Minor fix to the LPC example

PUBLISHED_FROM=3a99921093957c2ba9c1a0938fa00b3a29784d81
parent 84132b7b
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment