Add M21 for printer without SD detecttion

This commit is contained in:
Luc 2018-11-04 14:40:35 +01:00
parent 54b543d7ab
commit 3e38795c76
2 changed files with 8 additions and 1 deletions

View File

@ -19,7 +19,7 @@
*/
//version and sources location
#define FW_VERSION "2.0.0.c22"
#define FW_VERSION "2.0.0.c23"
#define REPOSITORY "https://github.com/luc-github/ESP3D"
//Customize ESP3D ////////////////////////////////////////////////////////////////////////

View File

@ -1194,6 +1194,13 @@ void SDFile_serial_upload()
return;
}
}
//Mount SD card
command = "M21";
if(!sendLine2Serial (command,-1, NULL)){
LOG("Mounting SD failed")
web_interface->_upload_status= UPLOAD_STATUS_FAILED;
return;
}
//Reset line numbering
if(!sendLine2Serial (resetcmd,-1, NULL)){
LOG("Reset Numbering failed")