🚸 Fix, Improve Power-Loss Recovery (#22828)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
This commit is contained in:
committed by
Scott Lahteine
parent
11071c7472
commit
3e18cf2b6a
@@ -2151,7 +2151,10 @@ uint32_t Stepper::block_phase_isr() {
|
||||
cutter.apply_power(current_block->cutter_power);
|
||||
#endif
|
||||
|
||||
TERN_(POWER_LOSS_RECOVERY, recovery.info.sdpos = current_block->sdpos);
|
||||
#if ENABLED(POWER_LOSS_RECOVERY)
|
||||
recovery.info.sdpos = current_block->sdpos;
|
||||
recovery.info.current_position = current_block->start_position;
|
||||
#endif
|
||||
|
||||
#if ENABLED(DIRECT_STEPPING)
|
||||
if (IS_PAGE(current_block)) {
|
||||
|
||||
Reference in New Issue
Block a user