Browse Source

Fix set_home_offset bug from bad porting

Scott Lahteine 7 years ago
parent
commit
51c7b5d46f
1 changed files with 2 additions and 7 deletions
  1. 2
    7
      Marlin/src/module/motion.cpp

+ 2
- 7
Marlin/src/module/motion.cpp View File

1376
 
1376
 
1377
 #if HAS_M206_COMMAND
1377
 #if HAS_M206_COMMAND
1378
   /**
1378
   /**
1379
-   * Change the home offset for an axis, update the current
1380
-   * position and the software endstops to retain the same
1381
-   * relative distance to the new home.
1382
-   *
1383
-   * Since this changes the current_position, code should
1384
-   * call sync_plan_position soon after this.
1379
+   * Change the home offset for an axis.
1380
+   * Also refreshes the workspace offset.
1385
    */
1381
    */
1386
   void set_home_offset(const AxisEnum axis, const float v) {
1382
   void set_home_offset(const AxisEnum axis, const float v) {
1387
-    current_position[axis] += v - home_offset[axis];
1388
     home_offset[axis] = v;
1383
     home_offset[axis] = v;
1389
     update_software_endstops(axis);
1384
     update_software_endstops(axis);
1390
   }
1385
   }

Loading…
Cancel
Save