From e5fa2a426cf4cf6f03d4f61d4de3c686774e7a35 Mon Sep 17 00:00:00 2001 From: Inv3nt0r1 Date: Sat, 28 Mar 2020 18:13:07 +0530 Subject: [PATCH] corrected typo in msg printed when SD Card fails to initialize --- examples/CardInfo/CardInfo.ino | 1 + examples/Datalogger/Datalogger.ino | 2 +- examples/DumpFile/DumpFile.ino | 2 +- examples/Files/Files.ino | 6 +++++- examples/NonBlockingWrite/NonBlockingWrite.ino | 2 +- examples/ReadWrite/ReadWrite.ino | 2 +- examples/listfiles/listfiles.ino | 2 +- 7 files changed, 11 insertions(+), 6 deletions(-) diff --git a/examples/CardInfo/CardInfo.ino b/examples/CardInfo/CardInfo.ino index d9b0207..ceef52a 100644 --- a/examples/CardInfo/CardInfo.ino +++ b/examples/CardInfo/CardInfo.ino @@ -52,6 +52,7 @@ void setup() { Serial.println("* is a card inserted?"); Serial.println("* is your wiring correct?"); Serial.println("* did you change the chipSelect pin to match your shield or module?"); + Serial.println("Note: press reset button on the board and reopen this Serial Monitor after fixing your issue!"); while (1); } else { Serial.println("Wiring is correct and a card is present."); diff --git a/examples/Datalogger/Datalogger.ino b/examples/Datalogger/Datalogger.ino index ab574ff..c5a509c 100644 --- a/examples/Datalogger/Datalogger.ino +++ b/examples/Datalogger/Datalogger.ino @@ -41,7 +41,7 @@ void setup() { Serial.println("1. is a card inserted?"); Serial.println("2. is your wiring correct?"); Serial.println("3. did you change the chipSelect pin to match your shield or module?"); - Serial.println("Note: press reset or reopen this Serial Monitor after fixing your issue!"); + Serial.println("Note: press reset button on the board and reopen this Serial Monitor after fixing your issue!"); while (true); } diff --git a/examples/DumpFile/DumpFile.ino b/examples/DumpFile/DumpFile.ino index 59eaf78..b6e9944 100644 --- a/examples/DumpFile/DumpFile.ino +++ b/examples/DumpFile/DumpFile.ino @@ -38,7 +38,7 @@ void setup() { Serial.println("1. is a card inserted?"); Serial.println("2. is your wiring correct?"); Serial.println("3. did you change the chipSelect pin to match your shield or module?"); - Serial.println("Note: press reset or reopen this Serial Monitor after fixing your issue!"); + Serial.println("Note: press reset button on the board and reopen this Serial Monitor after fixing your issue!"); while (true); } diff --git a/examples/Files/Files.ino b/examples/Files/Files.ino index b055439..2df0269 100644 --- a/examples/Files/Files.ino +++ b/examples/Files/Files.ino @@ -33,7 +33,11 @@ while (!Serial); Serial.print("Initializing SD card..."); if (!SD.begin(chipSelect)) { - Serial.println("initialization failed!"); + Serial.println("initialization failed. Things to check:"); + Serial.println("1. is a card inserted?"); + Serial.println("2. is your wiring correct?"); + Serial.println("3. did you change the chipSelect pin to match your shield or module?"); + Serial.println("Note: press reset button on the board and reopen this serial monitor after fixing your issue!"); while (1); } Serial.println("initialization done."); diff --git a/examples/NonBlockingWrite/NonBlockingWrite.ino b/examples/NonBlockingWrite/NonBlockingWrite.ino index 22373f6..101bfd0 100644 --- a/examples/NonBlockingWrite/NonBlockingWrite.ino +++ b/examples/NonBlockingWrite/NonBlockingWrite.ino @@ -64,7 +64,7 @@ void setup() { Serial.println("1. is a card inserted?"); Serial.println("2. is your wiring correct?"); Serial.println("3. did you change the chipSelect pin to match your shield or module?"); - Serial.println("Note: press reset or reopen this Serial Monitor after fixing your issue!"); + Serial.println("Note: press reset button on the board and reopen this Serial Monitor after fixing your issue!"); while (true); } diff --git a/examples/ReadWrite/ReadWrite.ino b/examples/ReadWrite/ReadWrite.ino index 11c1778..b505a27 100644 --- a/examples/ReadWrite/ReadWrite.ino +++ b/examples/ReadWrite/ReadWrite.ino @@ -36,7 +36,7 @@ void setup() { Serial.println("1. is a card inserted?"); Serial.println("2. is your wiring correct?"); Serial.println("3. did you change the chipSelect pin to match your shield or module?"); - Serial.println("Note: press reset or reopen this Serial Monitor after fixing your issue!"); + Serial.println("Note: press reset button on the board and reopen this Serial Monitor after fixing your issue!"); while (true); } diff --git a/examples/listfiles/listfiles.ino b/examples/listfiles/listfiles.ino index b062e57..ded9b13 100644 --- a/examples/listfiles/listfiles.ino +++ b/examples/listfiles/listfiles.ino @@ -44,7 +44,7 @@ void setup() { Serial.println("1. is a card inserted?"); Serial.println("2. is your wiring correct?"); Serial.println("3. did you change the chipSelect pin to match your shield or module?"); - Serial.println("Note: press reset or reopen this Serial Monitor after fixing your issue!"); + Serial.println("Note: press reset button on the board and reopen this Serial Monitor after fixing your issue!"); while (true); }