-
This commit is contained in:
parent
8a8ea50f33
commit
10bf2bb8e1
1 changed files with 11 additions and 0 deletions
|
@ -714,6 +714,17 @@ void process_commands()
|
||||||
//processed in write to file routine above
|
//processed in write to file routine above
|
||||||
//card,saving = false;
|
//card,saving = false;
|
||||||
break;
|
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
|
#endif //SDSUPPORT
|
||||||
|
|
||||||
case 30: //M30 take time since the start of the SD print or an M109 command
|
case 30: //M30 take time since the start of the SD print or an M109 command
|
||||||
|
|
Reference in a new issue