network available flag
This commit is contained in:
parent
30d17c5e5c
commit
8a36a3da82
@ -78,6 +78,7 @@ static void wizDHCPAssign() {
|
|||||||
coloredMsg(LOG_RED, "wizda, set netinfo again");
|
coloredMsg(LOG_RED, "wizda, set netinfo again");
|
||||||
|
|
||||||
networkAvailable = true;
|
networkAvailable = true;
|
||||||
|
coloredMsg(LOG_GREEN, "wizda, network is available");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void wizDHCPUpdate() {
|
static void wizDHCPUpdate() {
|
||||||
@ -130,6 +131,7 @@ static void wizPhyLinkHandler(void *handle) {
|
|||||||
dhcpInitialized = true;
|
dhcpInitialized = true;
|
||||||
} else {
|
} else {
|
||||||
networkAvailable = false;
|
networkAvailable = false;
|
||||||
|
coloredMsg(LOG_RED, "wizplh, network is unavailable");
|
||||||
|
|
||||||
// stop DHCP handler
|
// stop DHCP handler
|
||||||
if (dhcpInitialized) {
|
if (dhcpInitialized) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user