This commit is contained in:
2020-11-08 16:55:27 +01:00
parent c39e6cb5eb
commit 5c80167610
2 changed files with 9 additions and 5 deletions

View File

@ -47,9 +47,13 @@ static void wizReset(bool b) {
}
static void wizDHCPHandler(void *handle) {
static uint8_t lastStablePhyLink = 255;
uint8_t phyLink = 0;
int8_t res = ctlwizchip(CW_GET_PHYLINK, (void*) &phyLink);
coloredMsg(LOG_RED, "wizdh, ctlwizchip returns %d, phy link is %d", res, phyLink);
if (lastStablePhyLink != phyLink) {
coloredMsg(LOG_RED, "wizdh, ctlwizchip returns %d, phy link changed to %d", res, phyLink);
lastStablePhyLink = phyLink;
}
}
int wizInit() {