Browse Source

Fix 'sync_plan_position' call (#19016)

vanilla_fb_2.0.x
swissnorp 4 years ago
committed by Scott Lahteine
parent
commit
28d6dc38af
  1. 2
      Marlin/src/module/stepper/indirection.h

2
Marlin/src/module/stepper/indirection.h

@ -850,7 +850,7 @@ void reset_stepper_drivers(); // Called by settings.load / settings.reset
#define ENABLE_AXIS_Z() do{ ENABLE_STEPPER_Z(); ENABLE_STEPPER_Z2(); ENABLE_STEPPER_Z3(); ENABLE_STEPPER_Z4(); }while(0) #define ENABLE_AXIS_Z() do{ ENABLE_STEPPER_Z(); ENABLE_STEPPER_Z2(); ENABLE_STEPPER_Z3(); ENABLE_STEPPER_Z4(); }while(0)
#ifdef Z_AFTER_DEACTIVATE #ifdef Z_AFTER_DEACTIVATE
#define Z_RESET() do{ current_position.z = Z_AFTER_DEACTIVATE; planner.sync_plan_position(); }while(0) #define Z_RESET() do{ current_position.z = Z_AFTER_DEACTIVATE; sync_plan_position(); }while(0)
#else #else
#define Z_RESET() #define Z_RESET()
#endif #endif

Loading…
Cancel
Save