File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ void setup() {
52
52
Serial.println (" * is a card inserted?" );
53
53
Serial.println (" * is your wiring correct?" );
54
54
Serial.println (" * did you change the chipSelect pin to match your shield or module?" );
55
- return ;
55
+ while ( 1 ) ;
56
56
} else {
57
57
Serial.println (" Wiring is correct and a card is present." );
58
58
}
@@ -77,7 +77,7 @@ void setup() {
77
77
// Now we will try to open the 'volume'/'partition' - it should be FAT16 or FAT32
78
78
if (!volume.init (card)) {
79
79
Serial.println (" Could not find FAT16/FAT32 partition.\n Make sure you've formatted the card" );
80
- return ;
80
+ while ( 1 ) ;
81
81
}
82
82
83
83
Serial.print (" Clusters: " );
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ void setup() {
39
39
if (!SD.begin (chipSelect)) {
40
40
Serial.println (" Card failed, or not present" );
41
41
// don't do anything more:
42
- return ;
42
+ while ( 1 ) ;
43
43
}
44
44
Serial.println (" card initialized." );
45
45
}
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ void setup() {
39
39
if (!SD.begin (chipSelect)) {
40
40
Serial.println (" Card failed, or not present" );
41
41
// don't do anything more:
42
- return ;
42
+ while ( 1 ) ;
43
43
}
44
44
Serial.println (" card initialized." );
45
45
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ void setup() {
34
34
35
35
if (!SD.begin (4 )) {
36
36
Serial.println (" initialization failed!" );
37
- return ;
37
+ while ( 1 ) ;
38
38
}
39
39
Serial.println (" initialization done." );
40
40
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ void setup() {
35
35
36
36
if (!SD.begin (4 )) {
37
37
Serial.println (" initialization failed!" );
38
- return ;
38
+ while ( 1 ) ;
39
39
}
40
40
Serial.println (" initialization done." );
41
41
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ void setup() {
37
37
38
38
if (!SD.begin (4 )) {
39
39
Serial.println (" initialization failed!" );
40
- return ;
40
+ while ( 1 ) ;
41
41
}
42
42
Serial.println (" initialization done." );
43
43
You can’t perform that action at this time.
0 commit comments