mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
HACK: don't call the card-changed callback with interrupts disabled, as it means that timeouts don't work.
This commit is contained in:
@@ -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);
|
fvdbg("cdstatus OLD: %02x NEW: %02x\n", cdstatus, priv->cdstatus);
|
||||||
|
|
||||||
|
irqrestore(flags);
|
||||||
|
|
||||||
/* Perform any requested callback if the status has changed */
|
/* Perform any requested callback if the status has changed */
|
||||||
|
|
||||||
if (cdstatus != priv->cdstatus)
|
if (cdstatus != priv->cdstatus)
|
||||||
{
|
{
|
||||||
stm32_callback(priv);
|
stm32_callback(priv);
|
||||||
}
|
}
|
||||||
irqrestore(flags);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user