Skip to content

Commit f3f69b8

Browse files
committed
Correction of judgment errors.
1 parent a252b07 commit f3f69b8

File tree

1 file changed

+2
-2
lines changed
  • features/netsocket/emac-drivers/TARGET_NUVOTON_EMAC/TARGET_M480

1 file changed

+2
-2
lines changed

features/netsocket/emac-drivers/TARGET_NUVOTON_EMAC/TARGET_M480/m480_eth.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static int reset_phy(void)
8484

8585
}
8686

87-
if(delayCnt == 0) {
87+
if(delayCnt == -1) {
8888
NU_DEBUGF(("Reset phy failed\n"));
8989
return(-1);
9090
}
@@ -105,7 +105,7 @@ static int reset_phy(void)
105105
break;
106106
}
107107

108-
if(delayCnt == 0) {
108+
if(delayCnt == -1) {
109109
NU_DEBUGF(("AN failed. Set to 100 FULL\n"));
110110
EMAC->CTL |= (EMAC_CTL_OPMODE_Msk | EMAC_CTL_FUDUP_Msk);
111111
return(-1);

0 commit comments

Comments
 (0)