git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3978 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2012-02-25 12:14:20 +00:00
parent e74087e932
commit 4aa2f80db0
1 changed files with 1 additions and 0 deletions

View File

@ -592,6 +592,7 @@ bool_t mac_lld_poll_link_status(MACDriver *macp) {
uint32_t maccr, bmsr, bmcr;
/* Checks if the link is up, updates the status accordingly and returns.*/
(void)mii_read(macp, MII_BMSR);
bmsr = mii_read(macp, MII_BMSR);
if (!(bmsr & BMSR_LSTATUS))
return macp->link_up = FALSE;