HACK: don't call the card-changed callback with interrupts disabled, as it means that timeouts don't work.

This commit is contained in:
px4dev
2013-04-26 23:09:11 -07:00
parent 1c78e365ce
commit 686139c7d8
+2 -1
View File
@@ -2797,13 +2797,14 @@ void sdio_mediachange(FAR struct sdio_dev_s *dev, bool cardinslot)
}
fvdbg("cdstatus OLD: %02x NEW: %02x\n", cdstatus, priv->cdstatus);
irqrestore(flags);
/* Perform any requested callback if the status has changed */
if (cdstatus != priv->cdstatus)
{
stm32_callback(priv);
}
irqrestore(flags);
}
/****************************************************************************