Improve sync of stepper positions
This commit is contained in:
parent
1682036533
commit
08e20dbbc6
5 changed files with 109 additions and 63 deletions
|
|
@ -6258,8 +6258,6 @@ void home_all_axes() { gcode_G28(true); }
|
|||
*/
|
||||
inline void gcode_G92() {
|
||||
|
||||
stepper.synchronize();
|
||||
|
||||
#if ENABLED(CNC_COORDINATE_SYSTEMS)
|
||||
switch (parser.subcode) {
|
||||
case 1:
|
||||
|
|
@ -6319,10 +6317,9 @@ inline void gcode_G92() {
|
|||
COPY(coordinate_system[active_coordinate_system], position_shift);
|
||||
#endif
|
||||
|
||||
if (didXYZ)
|
||||
SYNC_PLAN_POSITION_KINEMATIC();
|
||||
else if (didE)
|
||||
sync_plan_position_e();
|
||||
// Update planner/steppers only if the native coordinates changed
|
||||
if (didXYZ) SYNC_PLAN_POSITION_KINEMATIC();
|
||||
else if (didE) sync_plan_position_e();
|
||||
|
||||
report_current_position();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue