Skip to content

Commit e682e42

Browse files
authored
Merge pull request #101 from vladkampov/patch-1
Fix Files example: use chipSelect port variable to check if SD initialisation passed
2 parents 84d60d8 + 47210d4 commit e682e42

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)