|
@@ -1376,15 +1376,10 @@ void homeaxis(const AxisEnum axis) {
|
1376
|
1376
|
|
1377
|
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
|
1382
|
void set_home_offset(const AxisEnum axis, const float v) {
|
1387
|
|
- current_position[axis] += v - home_offset[axis];
|
1388
|
1383
|
home_offset[axis] = v;
|
1389
|
1384
|
update_software_endstops(axis);
|
1390
|
1385
|
}
|