瀏覽代碼

Correct the sign of zprobe_zoffset for G29 (PR#@391)

Sign flipped with #2167.
See also comments
https://github.com/MarlinFirmware/Marlin/issues/2040#issuecomment-118568355
and following.
AnHardt 10 年之前
父節點
當前提交
d421f5250d
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp 查看文件

2835
               real_z = (float)st_get_position(Z_AXIS) / axis_steps_per_unit[Z_AXIS];  //get the real Z (since the auto bed leveling is already correcting the plane)
2835
               real_z = (float)st_get_position(Z_AXIS) / axis_steps_per_unit[Z_AXIS];  //get the real Z (since the auto bed leveling is already correcting the plane)
2836
 
2836
 
2837
         apply_rotation_xyz(plan_bed_level_matrix, x_tmp, y_tmp, z_tmp); // Apply the correction sending the probe offset
2837
         apply_rotation_xyz(plan_bed_level_matrix, x_tmp, y_tmp, z_tmp); // Apply the correction sending the probe offset
2838
-        //line below controls z probe offset, zprobe_zoffset is the actual offset that can be modified via m851
2839
-        current_position[Z_AXIS] = z_tmp - real_z + zprobe_zoffset;                     // The difference is added to current position and sent to planner.
2838
+        //line below controls z probe offset, zprobe_zoffset is the actual offset that can be modified via m851 or is read from EEPROM
2839
+        current_position[Z_AXIS] = z_tmp - real_z - zprobe_zoffset; // The difference is added to current position and sent to planner.
2840
         sync_plan_position();
2840
         sync_plan_position();
2841
       }
2841
       }
2842
     #endif // !DELTA
2842
     #endif // !DELTA

Loading…
取消
儲存