mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 00:05:34 +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);
|
||||
|
||||
irqrestore(flags);
|
||||
|
||||
/* Perform any requested callback if the status has changed */
|
||||
|
||||
if (cdstatus != priv->cdstatus)
|
||||
{
|
||||
stm32_callback(priv);
|
||||
}
|
||||
irqrestore(flags);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user