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

+8
View File
@@ -121,6 +121,10 @@ Stepper stepper; // Singleton
#include "../libs/L6470/L6470_Marlin.h"
#endif
#if ENABLED(POWER_LOSS_RECOVERY)
#include "../feature/power_loss_recovery.h"
#endif
// public:
#if HAS_EXTRA_ENDSTOPS || ENABLED(Z_STEPPER_AUTO_ALIGN)
@@ -1663,6 +1667,10 @@ uint32_t Stepper::stepper_block_phase_isr() {
return interval; // No more queued movements!
}
#if ENABLED(POWER_LOSS_RECOVERY)
recovery.info.sdpos = current_block->sdpos;
#endif
// Flag all moving axes for proper endstop handling
#if IS_CORE