mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-04 13:30:39 +08:00
Add M21 for printer without SD detecttion
This commit is contained in:
parent
54b543d7ab
commit
3e38795c76
@ -19,7 +19,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
//version and sources location
|
//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"
|
#define REPOSITORY "https://github.com/luc-github/ESP3D"
|
||||||
|
|
||||||
//Customize ESP3D ////////////////////////////////////////////////////////////////////////
|
//Customize ESP3D ////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -1194,6 +1194,13 @@ void SDFile_serial_upload()
|
|||||||
return;
|
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
|
//Reset line numbering
|
||||||
if(!sendLine2Serial (resetcmd,-1, NULL)){
|
if(!sendLine2Serial (resetcmd,-1, NULL)){
|
||||||
LOG("Reset Numbering failed")
|
LOG("Reset Numbering failed")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user