Skip to content

Commit aed496c

Browse files
authored
Allow test to continue without SD Card inserted.
1 parent c819ceb commit aed496c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/GoldilocksAnalogueTestSuite/GoldilocksAnalogueTestSuite.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,7 @@ void setup() {
151151
// Now we will try to open the 'volume'/'partition' - it should be FAT16 or FAT32
152152
if (!volume.init(card)) {
153153
Serial.println(F("Could not find FAT16/FAT32 partition.\nMake sure you've formatted the card"));
154-
return;
155-
}
154+
} else {
156155

157156
// print the type and size of the first FAT-type volume
158157
uint32_t volumesize;
@@ -177,6 +176,7 @@ void setup() {
177176

178177
// list all files in the card with date and size
179178
root.ls(LS_R | LS_DATE | LS_SIZE);
179+
}
180180

181181
// Now set up two tasks to help us with testing.
182182
xTaskCreate(

0 commit comments

Comments
 (0)