Browse Source

Merge pull request #6623 from lrpirlet/AllowUBLG29ToWork

G29 P1 stops reporting Invalid location with this patch
bgort 7 years ago
parent
commit
787fdc95bb
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/ubl_G29.cpp

+ 2
- 2
Marlin/ubl_G29.cpp View File

1057
       err_flag = true;
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
       SERIAL_PROTOCOLLNPGM("Invalid X location specified.\n");
1061
       SERIAL_PROTOCOLLNPGM("Invalid X location specified.\n");
1062
       err_flag = true;
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
       SERIAL_PROTOCOLLNPGM("Invalid Y location specified.\n");
1066
       SERIAL_PROTOCOLLNPGM("Invalid Y location specified.\n");
1067
       err_flag = true;
1067
       err_flag = true;
1068
     }
1068
     }

Loading…
Cancel
Save