瀏覽代碼

Merge pull request #6623 from lrpirlet/AllowUBLG29ToWork

G29 P1 stops reporting Invalid location with this patch
bgort 7 年之前
父節點
當前提交
787fdc95bb
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      Marlin/ubl_G29.cpp

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

@@ -1057,12 +1057,12 @@
1057 1057
       err_flag = true;
1058 1058
     }
1059 1059
 
1060
-    if (!WITHIN(RAW_X_POSITION(x_pos), UBL_MESH_MIN_X, UBL_MESH_MAX_X)) {
1060
+    if (!WITHIN(RAW_X_POSITION(x_pos), X_MIN_POS, X_MAX_POS)) {
1061 1061
       SERIAL_PROTOCOLLNPGM("Invalid X location specified.\n");
1062 1062
       err_flag = true;
1063 1063
     }
1064 1064
 
1065
-    if (!WITHIN(RAW_Y_POSITION(y_pos), UBL_MESH_MIN_Y, UBL_MESH_MAX_Y)) {
1065
+    if (!WITHIN(RAW_Y_POSITION(y_pos), Y_MIN_POS, Y_MAX_POS)) {
1066 1066
       SERIAL_PROTOCOLLNPGM("Invalid Y location specified.\n");
1067 1067
       err_flag = true;
1068 1068
     }

Loading…
取消
儲存