Operate in Native Machine Space
This commit is contained in:
1 parent
31f112cf58
commit
f8393a0908
36 files changed
+449
-489
No files matched your search
@@ -67,7 +67,7 @@ void GcodeSuite::M428() {
|
||||
LOOP_XYZ(i) {
|
||||
if (axis_homed[i]) {
|
||||
const float base = (current_position[i] > (soft_endstop_min[i] + soft_endstop_max[i]) * 0.5) ? base_home_pos((AxisEnum)i) : 0,
|
||||
diff = base - RAW_POSITION(current_position[i], i);
|
||||
diff = base - current_position[i];
|
||||
if (WITHIN(diff, -20, 20)) {
|
||||
set_home_offset((AxisEnum)i, diff);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user