|
@@ -496,17 +496,16 @@ static void lcd_status_screen() {
|
496
|
496
|
}
|
497
|
497
|
|
498
|
498
|
static void lcd_sdcard_stop() {
|
499
|
|
- stepper.quick_stop();
|
500
|
|
- #if DISABLED(DELTA) && DISABLED(SCARA)
|
501
|
|
- set_current_position_from_planner();
|
502
|
|
- #endif // !DELTA && !SCARA
|
|
499
|
+ card.stopSDPrint();
|
503
|
500
|
clear_command_queue();
|
504
|
|
- card.sdprinting = false;
|
505
|
|
- card.closefile();
|
|
501
|
+ stepper.quick_stop();
|
506
|
502
|
print_job_timer.stop();
|
507
|
503
|
thermalManager.autotempShutdown();
|
508
|
504
|
cancel_heatup = true;
|
509
|
505
|
lcd_setstatus(MSG_PRINT_ABORTED, true);
|
|
506
|
+ #if DISABLED(DELTA) && DISABLED(SCARA)
|
|
507
|
+ set_current_position_from_planner();
|
|
508
|
+ #endif // !DELTA && !SCARA
|
510
|
509
|
}
|
511
|
510
|
|
512
|
511
|
#endif //SDSUPPORT
|