Ver código fonte

G29 P1 stops reporting Invalid location with this patch

lrpirlet 8 anos atrás
pai
commit
06ca56a13c
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      Marlin/ubl_G29.cpp

+ 2
- 2
Marlin/ubl_G29.cpp Ver arquivo

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
     }

Carregando…
Cancelar
Salvar