We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a814bfb commit a50f89fCopy full SHA for a50f89f
examples/companion_radio/MyMesh.cpp
@@ -1312,8 +1312,9 @@ void MyMesh::checkCLIRescueCmd() {
1312
1313
// log each file and directory
1314
File root = _store->openRead(path);
1315
- File file = root.openNextFile();
1316
- while (file) {
+ if(root){
+ File file = root.openNextFile();
1317
+ while (file) {
1318
1319
if (file.isDirectory()) {
1320
Serial.print("[dir] ");
@@ -1329,6 +1330,7 @@ void MyMesh::checkCLIRescueCmd() {
1329
1330
// move to next file
1331
file = root.openNextFile();
1332
1333
+ }
1334
}
1335
1336
} else if (memcmp(cli_command, "cat", 3) == 0) {
0 commit comments