Skip to content

Commit f28fce3

Browse files
committed
corrected typo in msg printed when SD Card fails to initialize
1 parent 0a0aaeb commit f28fce3

File tree

7 files changed

+29
-6
lines changed

7 files changed

+29
-6
lines changed

examples/CardInfo/CardInfo.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ void setup() {
5252
Serial.println("* is a card inserted?");
5353
Serial.println("* is your wiring correct?");
5454
Serial.println("* did you change the chipSelect pin to match your shield or module?");
55+
Serial.println("Note: press reset button on the board and reopen this serial monitor after fixing your issue!");
5556
while (1);
5657
} else {
5758
Serial.println("Wiring is correct and a card is present.");

examples/Datalogger/Datalogger.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ void setup() {
3737

3838
// see if the card is present and can be initialized:
3939
if (!SD.begin(chipSelect)) {
40-
Serial.println("Card failed, or not present");
40+
Serial.println("initialization failed. Things to check:");
41+
Serial.println("1. is a card inserted?");
42+
Serial.println("2. is your wiring correct?");
43+
Serial.println("3. did you change the chipSelect pin to match your shield or module?");
44+
Serial.println("Note: press reset button on the board and reopen this serial monitor after fixing your issue!");
4145
// don't do anything more:
4246
while (1);
4347
}

examples/DumpFile/DumpFile.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ void setup() {
3737

3838
// see if the card is present and can be initialized:
3939
if (!SD.begin(chipSelect)) {
40-
Serial.println("Card failed, or not present");
40+
Serial.println("initialization failed. Things to check:");
41+
Serial.println("1. is a card inserted?");
42+
Serial.println("2. is your wiring correct?");
43+
Serial.println("3. did you change the chipSelect pin to match your shield or module?");
44+
Serial.println("Note: press reset button on the board and reopen this serial monitor after fixing your issue!");
4145
// don't do anything more:
4246
while (1);
4347
}

examples/Files/Files.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ void setup() {
3333
Serial.print("Initializing SD card...");
3434

3535
if (!SD.begin(4)) {
36-
Serial.println("initialization failed!");
36+
Serial.println("initialization failed. Things to check:");
37+
Serial.println("1. is a card inserted?");
38+
Serial.println("2. is your wiring correct?");
39+
Serial.println("3. did you change the chipSelect pin to match your shield or module?");
40+
Serial.println("Note: press reset button on the board and reopen this serial monitor after fixing your issue!");
3741
while (1);
3842
}
3943
Serial.println("initialization done.");

examples/NonBlockingWrite/NonBlockingWrite.ino

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,15 @@ void setup() {
4040
// set LED pin to output, used to blink when writing
4141
pinMode(LED_BUILTIN, OUTPUT);
4242

43+
Serial.print("Initializing SD card...");
44+
4345
// init the SD card
4446
if (!SD.begin()) {
45-
Serial.println("Card failed, or not present");
47+
Serial.println("initialization failed. Things to check:");
48+
Serial.println("1. is a card inserted?");
49+
Serial.println("2. is your wiring correct?");
50+
Serial.println("3. did you change the chipSelect pin to match your shield or module?");
51+
Serial.println("Note: press reset button on the board and reopen this serial monitor after fixing your issue!");
4652
// don't do anything more:
4753
while (1);
4854
}

examples/ReadWrite/ReadWrite.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void setup() {
3838
Serial.println("1. is a card inserted?");
3939
Serial.println("2. is your wiring correct?");
4040
Serial.println("3. did you change the chipSelect pin to match your shield or module?");
41-
Serial.println("Note: press reset or reopen this serial monitor after fixing your issue!");
41+
Serial.println("Note: press reset button on the board and reopen this serial monitor after fixing your issue!");
4242
while (1);
4343
}
4444

examples/listfiles/listfiles.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ void setup() {
3636
Serial.print("Initializing SD card...");
3737

3838
if (!SD.begin(4)) {
39-
Serial.println("initialization failed!");
39+
Serial.println("initialization failed. Things to check:");
40+
Serial.println("1. is a card inserted?");
41+
Serial.println("2. is your wiring correct?");
42+
Serial.println("3. did you change the chipSelect pin to match your shield or module?");
43+
Serial.println("Note: press reset button on the board and reopen this serial monitor after fixing your issue!");
4044
while (1);
4145
}
4246
Serial.println("initialization done.");

0 commit comments

Comments
 (0)