Christian Thalhammer 13 年前
父节点
当前提交
10bf2bb8e1
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11
    0
      Marlin/Marlin.pde

+ 11
- 0
Marlin/Marlin.pde 查看文件

714
       //processed in write to file routine above
714
       //processed in write to file routine above
715
       //card,saving = false;
715
       //card,saving = false;
716
       break;
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
 #endif //SDSUPPORT
728
 #endif //SDSUPPORT
718
 
729
 
719
     case 30: //M30 take time since the start of the SD print or an M109 command
730
     case 30: //M30 take time since the start of the SD print or an M109 command

正在加载...
取消
保存