sdmmc_mmc_sanitize() function
Sanitize the data that was unmapped by a Discard command
Arguments
card
pointer to card information structure previously initialized using sdmmc_card_init
timeout_ms
timeout value in milliseconds required to sanitize the selected range of sectors.
Return value
- ESP_OK on success - One of the error codes from SDMMC host controller
Notes
Discard command has to precede sanitize operation. To discard, use MMC_DICARD_ARG with sdmmc_erase_sectors argument