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:
@ -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
|
||||
|
Reference in New Issue
Block a user