mirror of
https://github.com/synthetos/g2.git
synced 2026-09-22 03:08:42 +08:00
Fixed homing problem with root cause in new feedhold code. Deleted NORMALLY_OPEN and NORMALLY_CLOSED defines (Use IO_ACTIVE_LOW and IO_ACTIVE_HIGH - respectively - instead.)
This commit is contained in:
@@ -1061,7 +1061,8 @@ stat_t cm_set_absolute_origin(const float origin[], bool flag[])
|
||||
|
||||
for (uint8_t axis = AXIS_X; axis < AXES; axis++) {
|
||||
if (flag[axis]) {
|
||||
value[axis] = _to_millimeters(origin[axis]);
|
||||
// REMOVED value[axis] = cm->offset[cm->gm.coord_system][axis] + _to_millimeters(origin[axis]); // G2 Issue #26
|
||||
value[axis] = _to_millimeters(origin[axis]); // replaced the above
|
||||
cm->gmx.position[axis] = value[axis]; // set model position
|
||||
cm->gm.target[axis] = value[axis]; // reset model target
|
||||
mp_set_planner_position(axis, value[axis]); // set mm position
|
||||
|
||||
Reference in New Issue
Block a user