Abort SD printing more safely (#10405)

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:
Scott Lahteine
2018-04-15 18:26:25 -05:00
committed by GitHub
parent 110e631656
commit d59ed4dce0
3 changed files with 34 additions and 15 deletions

View File

@@ -254,4 +254,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