fix PHY power mode query

This commit is contained in:
kacper-ka
2018-01-30 19:49:32 +01:00
committed by GitHub
parent a553bb9a25
commit 2fccf578fe

View File

@ -602,7 +602,7 @@ int8_t wizphy_getphypmode(void)
else
tmp = PHY_POWER_NORM;
#elif _WIZCHIP_ == 5500
if(getPHYCFGR() & PHYCFGR_OPMDC_PDOWN)
if((getPHYCFGR() & PHYCFGR_OPMDC_ALLA) == PHYCFGR_OPMDC_PDOWN)
tmp = PHY_POWER_DOWN;
else
tmp = PHY_POWER_NORM;