Skip to content

Commit 4d8012d

Browse files
committed
Add back the filter for smoothieware for subfolder
using M20 ESP3D cache
1 parent f26e3c2 commit 4d8012d

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

esp3d/webinterface.cpp

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3403,7 +3403,7 @@ void handleSDFileList()
34033403
LOG( CONFIG::formatBytes(ssize.toInt()));
34043404
}
34053405
#endif
3406-
#if FIRMWARE_TARGET == MARLIN || FIRMWARE_TARGET == MARLINKIMBRA || FIRMWARE_TARGET == SMOOTHIEWARE
3406+
#if FIRMWARE_TARGET == MARLIN || FIRMWARE_TARGET == MARLINKIMBRA
34073407
jsonfile+=sname;
34083408
jsonfile+="\",\"size\":\"";
34093409
LOG(String(i+1));
@@ -3416,6 +3416,20 @@ void handleSDFileList()
34163416
jsonfile+="";
34173417
// }
34183418
LOG("\r\n");
3419+
#endif
3420+
#if FIRMWARE_TARGET == SMOOTHIEWARE
3421+
jsonfile+=sname;
3422+
jsonfile+="\",\"size\":\"";
3423+
LOG(String(i+1));
3424+
LOG(sname);
3425+
if (sname[0] == '/' || sname[sname.length()-1]=='/') {
3426+
jsonfile+="-1";
3427+
LOG(" -1");
3428+
} else {
3429+
//nothing to add
3430+
jsonfile+="";
3431+
}
3432+
LOG("\r\n");
34193433
#endif
34203434
jsonfile+="\"}";
34213435
}

0 commit comments

Comments
 (0)