Skip to content

Commit 47210d4

Browse files
author
Vlad Kampov
authored
Fix Files example: use chipSelect port variable to check if SD initialisation passed
1 parent a64c2bd commit 47210d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/Files/Files.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ while (!Serial);
3232

3333
Serial.print("Initializing SD card...");
3434

35-
if (!SD.begin(10)) {
35+
if (!SD.begin(chipSelect)) {
3636
Serial.println("initialization failed!");
3737
while (1);
3838
}

0 commit comments

Comments
 (0)