Skip to content

Commit e850afb

Browse files
akira25P-R-O-C-H-Y
andauthored
SDMMC: Fix example code (espressif#10035)
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 <martin.hubner@web.de> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
1 parent 2db7306 commit e850afb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/SD_MMC/examples/SDMMC_Test/SDMMC_Test.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ void setup() {
214214
// If you want to change the pin assignment on ESP32-S3 uncomment this block and the appropriate
215215
// line depending if you want to use 1-bit or 4-bit line.
216216
// Please note that ESP32 does not allow pin change and will always fail.
217-
//if(! setPins(clk, cmd, d0)){
218-
//if(! setPins(clk, cmd, d0, d1, d2, d3)){
217+
//if(! SD_MMC.setPins(clk, cmd, d0)){
218+
//if(! SD_MMC.setPins(clk, cmd, d0, d1, d2, d3)){
219219
Serial.println("Pin change failed!");
220220
return;
221221
}

0 commit comments

Comments
 (0)