Fix compilation of SDMMC on ESP32C3

This commit is contained in:
Stephan Hadinger 2022-04-19 20:03:14 +02:00
parent 43c53838ad
commit 387cdd12d1

View File

@ -170,7 +170,7 @@ void UfsCheckSDCardInit(void) {
#endif // ESP32
}
}
#ifdef ESP32
#if defined(ESP32) && defined(SOC_SDMMC_HOST_SUPPORTED) // ESP32 and SDMMC supported (not Esp32C3)
// check if SDIO is configured
else if (PinUsed(GPIO_SDIO_CLK) && PinUsed(GPIO_SDIO_CMD) && PinUsed(GPIO_SDIO_D0)) {
int32_t sdio_cmd = Pin(GPIO_SDIO_CMD);