- reporting link state with DHCP off fixed
This commit is contained in:
parent
c3f8e53006
commit
398a448eba
@ -122,6 +122,7 @@ static ThreadReturnType task_ethintf(ThreadParamType param) {
|
|||||||
} else { // if link is off
|
} else { // if link is off
|
||||||
dhcp_stop(intf->dhcp);
|
dhcp_stop(intf->dhcp);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// print generic message
|
// print generic message
|
||||||
MSG("ETH LINK: %s%s", (ls ? (ANSI_COLOR_BGREEN "UP ") : (ANSI_COLOR_BRED "DOWN\n")), ANSI_COLOR_RESET);
|
MSG("ETH LINK: %s%s", (ls ? (ANSI_COLOR_BGREEN "UP ") : (ANSI_COLOR_BRED "DOWN\n")), ANSI_COLOR_RESET);
|
||||||
@ -130,7 +131,6 @@ static ThreadReturnType task_ethintf(ThreadParamType param) {
|
|||||||
if (ls) {
|
if (ls) {
|
||||||
MSG("(%u Mbps, %s duplex)\n", speed, duplex ? "FULL" : "HALF");
|
MSG("(%u Mbps, %s duplex)\n", speed, duplex ? "FULL" : "HALF");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
case ETH_IIE_TRANSMIT_NOTIFY: {
|
case ETH_IIE_TRANSMIT_NOTIFY: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user