File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -3403,7 +3403,7 @@ void handleSDFileList()
3403
3403
LOG ( CONFIG::formatBytes (ssize.toInt ()));
3404
3404
}
3405
3405
#endif
3406
- #if FIRMWARE_TARGET == MARLIN || FIRMWARE_TARGET == MARLINKIMBRA || FIRMWARE_TARGET == SMOOTHIEWARE
3406
+ #if FIRMWARE_TARGET == MARLIN || FIRMWARE_TARGET == MARLINKIMBRA
3407
3407
jsonfile+=sname;
3408
3408
jsonfile+=" \" ,\" size\" :\" " ;
3409
3409
LOG (String (i+1 ));
@@ -3416,6 +3416,20 @@ void handleSDFileList()
3416
3416
jsonfile+=" " ;
3417
3417
// }
3418
3418
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 " );
3419
3433
#endif
3420
3434
jsonfile+=" \" }" ;
3421
3435
}
You can’t perform that action at this time.
0 commit comments