Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
SCUBA82 committed Feb 29, 2012
1 parent 8a8ea50 commit 10bf2bb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Marlin/Marlin.pde
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,17 @@ void process_commands()
//processed in write to file routine above
//card,saving = false;
break;
case 31: //M31 <filename> Delete File
if (card.cardok){
card.closefile();
if (SdBaseFile::remove(strchr_pointer + 4)){
SERIAL_PROTOCOLLNPGM("File deleted");
}
else{
SERIAL_PROTOCOLLNPGM("Deletion failed");
}
}

#endif //SDSUPPORT

case 30: //M30 take time since the start of the SD print or an M109 command
Expand Down

0 comments on commit 10bf2bb

Please sign in to comment.