Kaynağa Gözat

Followup patch for G92

Scott Lahteine 7 yıl önce
ebeveyn
işleme
abb15bc30a
1 değiştirilmiş dosya ile 4 ekleme ve 3 silme
  1. 4
    3
      Marlin/Marlin_main.cpp

+ 4
- 3
Marlin/Marlin_main.cpp Dosyayı Görüntüle

6300
 
6300
 
6301
   if (IS_G92_0) LOOP_XYZE(i) {
6301
   if (IS_G92_0) LOOP_XYZE(i) {
6302
     if (parser.seenval(axis_codes[i])) {
6302
     if (parser.seenval(axis_codes[i])) {
6303
-      const float v = parser.value_axis_units((AxisEnum)i),
6304
-                  d = current_position[i] - v;
6305
-      if (d) {
6303
+      const float l = parser.value_axis_units((AxisEnum)i),
6304
+                  v = i == E_AXIS ? l : LOGICAL_TO_NATIVE(l, i),
6305
+                  d = v - current_position[i];
6306
+      if (!NEAR_ZERO(d)) {
6306
         if (i == E_AXIS) didE = true; else didXYZ = true;
6307
         if (i == E_AXIS) didE = true; else didXYZ = true;
6307
         #if IS_SCARA
6308
         #if IS_SCARA
6308
           current_position[i] = v;        // For SCARA just set the position directly
6309
           current_position[i] = v;        // For SCARA just set the position directly

Loading…
İptal
Kaydet