changes
This commit is contained in:
parent
c39e6cb5eb
commit
5c80167610
@ -190,11 +190,11 @@ void my_setup_2() {
|
|||||||
|
|
||||||
wizInit();
|
wizInit();
|
||||||
|
|
||||||
// frontendInit();
|
frontendInit();
|
||||||
// frontendSetThreshold(240);
|
frontendSetThreshold(240);
|
||||||
|
|
||||||
// schAdd(scheduleMBusRequest, NULL, 0, 1000);
|
schAdd(scheduleMBusRequest, NULL, 0, 1000);
|
||||||
// schAdd(triggerMBusRequest, NULL, 0, 100);
|
schAdd(triggerMBusRequest, NULL, 0, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
void my_loop() {
|
void my_loop() {
|
||||||
|
@ -47,9 +47,13 @@ static void wizReset(bool b) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void wizDHCPHandler(void *handle) {
|
static void wizDHCPHandler(void *handle) {
|
||||||
|
static uint8_t lastStablePhyLink = 255;
|
||||||
uint8_t phyLink = 0;
|
uint8_t phyLink = 0;
|
||||||
int8_t res = ctlwizchip(CW_GET_PHYLINK, (void*) &phyLink);
|
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() {
|
int wizInit() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user