|
@@ -714,6 +714,17 @@ void process_commands()
|
714
|
714
|
//processed in write to file routine above
|
715
|
715
|
//card,saving = false;
|
716
|
716
|
break;
|
|
717
|
+ case 31: //M31 <filename> Delete File
|
|
718
|
+ if (card.cardok){
|
|
719
|
+ card.closefile();
|
|
720
|
+ if (SdBaseFile::remove(strchr_pointer + 4)){
|
|
721
|
+ SERIAL_PROTOCOLLNPGM("File deleted");
|
|
722
|
+ }
|
|
723
|
+ else{
|
|
724
|
+ SERIAL_PROTOCOLLNPGM("Deletion failed");
|
|
725
|
+ }
|
|
726
|
+ }
|
|
727
|
+
|
717
|
728
|
#endif //SDSUPPORT
|
718
|
729
|
|
719
|
730
|
case 30: //M30 take time since the start of the SD print or an M109 command
|