Fix auto#.g file handling, add NO_SD_AUTOSTART (#20071)

This commit is contained in:
Scott Lahteine
2020-12-07 05:53:15 -06:00
committed by GitHub
parent b04914fb72
commit 7f20184ebc
9 changed files with 78 additions and 56 deletions

View File

@ -152,7 +152,7 @@ class PrintJobRecovery {
static void resume();
static void purge();
static inline void cancel() { purge(); card.autostart_index = 0; }
static inline void cancel() { purge(); IF_DISABLED(NO_SD_AUTOSTART, card.autofile_begin()); }
static void load();
static void save(const bool force=ENABLED(SAVE_EACH_CMD_MODE), const float zraise=0);