Skip to content

Commit f26e3c2

Browse files
committed
Under marlin only files are listed
so no need to look after folder which could lead to false positif For smoothieware the usage of M20 is not working for subfolder so use ls instead and no need to use file cache
1 parent 7626717 commit f26e3c2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

esp3d/esp3d.ino.nodemcu.bin

364 KB
Binary file not shown.

esp3d/webinterface.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3408,13 +3408,13 @@ void handleSDFileList()
34083408
jsonfile+="\",\"size\":\"";
34093409
LOG(String(i+1));
34103410
LOG(sname);
3411-
if (sname[0] == '/' || sname[sname.length()-1]=='/') {
3411+
/* if (sname[0] == '/' || sname[sname.length()-1]=='/') {
34123412
jsonfile+="-1";
34133413
LOG(" -1");
3414-
} else {
3414+
} else {*/
34153415
//nothing to add
34163416
jsonfile+="";
3417-
}
3417+
// }
34183418
LOG("\r\n");
34193419
#endif
34203420
jsonfile+="\"}";

0 commit comments

Comments
 (0)