Skip to content

Commit 3e38795

Browse files
committed
Add M21 for printer without SD detecttion
1 parent 54b543d commit 3e38795

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020

2121
//version and sources location
22-
#define FW_VERSION "2.0.0.c22"
22+
#define FW_VERSION "2.0.0.c23"
2323
#define REPOSITORY "https://github.com/luc-github/ESP3D"
2424

2525
//Customize ESP3D ////////////////////////////////////////////////////////////////////////

src/syncwebserver.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,6 +1194,13 @@ void SDFile_serial_upload()
11941194
return;
11951195
}
11961196
}
1197+
//Mount SD card
1198+
command = "M21";
1199+
if(!sendLine2Serial (command,-1, NULL)){
1200+
LOG("Mounting SD failed")
1201+
web_interface->_upload_status= UPLOAD_STATUS_FAILED;
1202+
return;
1203+
}
11971204
//Reset line numbering
11981205
if(!sendLine2Serial (resetcmd,-1, NULL)){
11991206
LOG("Reset Numbering failed")

0 commit comments

Comments
 (0)