Improve Power-loss Recovery (#15135)
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user