mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-06-30 02:40:57 +00:00
Improve Power-loss Recovery (#15135)
This commit is contained in:
parent
75927e17dd
commit
c590e8ac05
9 changed files with 87 additions and 32 deletions
Marlin/src/module
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue