Improve Power-loss Recovery (#15135)

This commit is contained in:
Scott Lahteine authored and GitHub committed 2019-09-10 18:52:41 -05:00
1 parent 75927e17dd
commit c590e8ac05
9 files changed
+87 -32

No files matched your search

+7
View File
@@ -38,6 +38,10 @@
#include "../../feature/host_actions.h"
#endif
#if ENABLED(POWER_LOSS_RECOVERY)
#include "../../feature/power_loss_recovery.h"
#endif
/**
* M24: Start or Resume SD Print
*/
@@ -58,6 +62,9 @@ void GcodeSuite::M24() {
if (card.isFileOpen()) {
card.startFileprint();
print_job_timer.start();
#if ENABLED(POWER_LOSS_RECOVERY)
recovery.prepare();
#endif
}
#if ENABLED(HOST_ACTION_COMMANDS)