Fix G53 as prefix, G28 with CNC_COORDINATE_SYSTEMS (#15069)

This commit is contained in:
Luu Lac
2019-08-28 04:20:28 -05:00
committed by Scott Lahteine
parent ca084dcfe8
commit 081e4506ca
4 changed files with 24 additions and 24 deletions

View File

@@ -52,12 +52,9 @@ void GcodeSuite::G92() {
case 1: {
// Zero the G92 values and restore current position
#if !IS_SCARA
LOOP_XYZ(i) {
const float v = position_shift[i];
if (v) {
position_shift[i] = 0;
update_workspace_offset((AxisEnum)i);
}
LOOP_XYZ(i) if (position_shift[i]) {
position_shift[i] = 0;
update_workspace_offset((AxisEnum)i);
}
#endif // Not SCARA
} return;