From e850afb15e07e658bfdb8debc4b07973b50d9265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=BCbner?= <43141307+Akira25@users.noreply.github.com> Date: Tue, 16 Jul 2024 10:52:11 +0200 Subject: [PATCH] SDMMC: Fix example code (#10035) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The setPins() function obviously comes from the SD_MMC lib. Not prepending that lib, this code won't compile. Signed-off-by: Martin Hübner Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> --- libraries/SD_MMC/examples/SDMMC_Test/SDMMC_Test.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/SD_MMC/examples/SDMMC_Test/SDMMC_Test.ino b/libraries/SD_MMC/examples/SDMMC_Test/SDMMC_Test.ino index e85737c71..030caae75 100644 --- a/libraries/SD_MMC/examples/SDMMC_Test/SDMMC_Test.ino +++ b/libraries/SD_MMC/examples/SDMMC_Test/SDMMC_Test.ino @@ -214,8 +214,8 @@ void setup() { // If you want to change the pin assignment on ESP32-S3 uncomment this block and the appropriate // line depending if you want to use 1-bit or 4-bit line. // Please note that ESP32 does not allow pin change and will always fail. - //if(! setPins(clk, cmd, d0)){ - //if(! setPins(clk, cmd, d0, d1, d2, d3)){ + //if(! SD_MMC.setPins(clk, cmd, d0)){ + //if(! SD_MMC.setPins(clk, cmd, d0, d1, d2, d3)){ Serial.println("Pin change failed!"); return; }