Abort SD printing more safely (#10407)
Allow the current command to complete when aborting an SD print, otherwise some commands (G28, G29, etc.) will cause trouble.
This commit is contained in:
parent
c9aed73987
commit
6c7a17dba6
3 changed files with 29 additions and 13 deletions
|
|
@ -261,4 +261,10 @@ void lcd_reset_status();
|
|||
void lcd_reselect_last_file();
|
||||
#endif
|
||||
|
||||
#if ENABLED(ULTIPANEL) && ENABLED(SDSUPPORT)
|
||||
extern bool abort_sd_printing;
|
||||
#else
|
||||
constexpr bool abort_sd_printing = false;
|
||||
#endif
|
||||
|
||||
#endif // ULTRALCD_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue