Browse Source

G29 P1 stops reporting Invalid location with this patch

lrpirlet 7 years ago
parent
commit
d66e9efac5
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,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…
Cancel
Save