diff options
Diffstat (limited to 'nuttx/arch')
-rw-r--r-- | nuttx/arch/mips/src/pic32mx/pic32mx-ethernet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/mips/src/pic32mx/pic32mx-ethernet.c b/nuttx/arch/mips/src/pic32mx/pic32mx-ethernet.c index 40db51f80..30860edfa 100644 --- a/nuttx/arch/mips/src/pic32mx/pic32mx-ethernet.c +++ b/nuttx/arch/mips/src/pic32mx/pic32mx-ethernet.c @@ -2676,7 +2676,7 @@ static inline int pic32mx_phyinit(struct pic32mx_driver_s *priv) * latches different at different addresses. */ - for (phyaddr = 1; phyaddr < 32; phyaddr++) + for (phyaddr = 0; phyaddr < 32; phyaddr++) { /* Clear any ongoing PHY command bits */ @@ -2687,7 +2687,7 @@ static inline int pic32mx_phyinit(struct pic32mx_driver_s *priv) ret = pic32mx_phyreset(phyaddr); if (ret < 0) { - ndbg("Failed to reset PHY at address %d\n"); + ndbg("Failed to reset PHY at address %d\n", phyaddr); continue; } |