Fix "Stop Print" function in the LCD menu
When one hit "Stop Print" option in LCD menu, the command buffer was not cleared. The printer keep moving until the buffer has been emptied. Actually I could not clear the command buffer as well.. I don't know why, it doesnt work as expected. I need to implement a routine inside Stepper ISR to handle such situation.
This commit is contained in:
parent
a534ac197a
commit
e650d4044e
3 changed files with 14 additions and 7 deletions
|
|
@ -349,16 +349,11 @@ static void lcd_sdcard_pause() { card.pauseSDPrint(); }
|
|||
static void lcd_sdcard_resume() { card.startFileprint(); }
|
||||
|
||||
static void lcd_sdcard_stop() {
|
||||
quickStop();
|
||||
card.sdprinting = false;
|
||||
card.closefile();
|
||||
quickStop();
|
||||
if (SD_FINISHED_STEPPERRELEASE) {
|
||||
enquecommands_P(PSTR(SD_FINISHED_RELEASECOMMAND));
|
||||
}
|
||||
autotempShutdown();
|
||||
|
||||
cancel_heatup = true;
|
||||
|
||||
lcd_setstatus(MSG_PRINT_ABORTED);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue