mirror of https://github.com/ARMmbed/mbed-os.git
STM32F4_HAL_MMC erase command check is wrong. == has higher precedence than &
parent
acdd7dd424
commit
54929f6aee
|
@ -1316,7 +1316,7 @@ HAL_StatusTypeDef HAL_MMC_Erase(MMC_HandleTypeDef *hmmc, uint32_t BlockStartAdd,
|
|||
hmmc->State = HAL_MMC_STATE_BUSY;
|
||||
|
||||
/* Check if the card command class supports erase command */
|
||||
if((hmmc->MmcCard.Class) & SDIO_CCCC_ERASE == 0U)
|
||||
if(((hmmc->MmcCard.Class) & SDIO_CCCC_ERASE) == 0U)
|
||||
{
|
||||
/* Clear all the static flags */
|
||||
__HAL_MMC_CLEAR_FLAG(hmmc, SDIO_STATIC_FLAGS);
|
||||
|
|
Loading…
Reference in New Issue