From 387cdd12d1fad5a3f97ce16514c457e1a300821d Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Tue, 19 Apr 2022 20:03:14 +0200 Subject: [PATCH] Fix compilation of SDMMC on ESP32C3 --- tasmota/xdrv_50_filesystem.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_50_filesystem.ino b/tasmota/xdrv_50_filesystem.ino index 3e5a86080..577c32064 100644 --- a/tasmota/xdrv_50_filesystem.ino +++ b/tasmota/xdrv_50_filesystem.ino @@ -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);