Browse Source

MBL: Fix for negative x/y positions

Edward Patel 8 years ago
parent
commit
eb2746a34f
2 changed files with 5 additions and 4 deletions
  1. 1
    4
      Marlin/Configuration.h
  2. 4
    0
      Marlin/mesh_bed_leveling.h

+ 1
- 4
Marlin/Configuration.h View File

@@ -519,10 +519,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
519 519
 //#define MESH_BED_LEVELING    // Enable mesh bed leveling.
520 520
 
521 521
 #if ENABLED(MESH_BED_LEVELING)
522
-  #define MESH_MIN_X 10
523
-  #define MESH_MAX_X (X_MAX_POS - (MESH_MIN_X))
524
-  #define MESH_MIN_Y 10
525
-  #define MESH_MAX_Y (Y_MAX_POS - (MESH_MIN_Y))
522
+  #define MESH_INSET 10        // Mesh inset margin on print area
526 523
   #define MESH_NUM_X_POINTS 3  // Don't use more than 7 points per axis, implementation limited.
527 524
   #define MESH_NUM_Y_POINTS 3
528 525
   #define MESH_HOME_SEARCH_Z 4  // Z after Home, bed somewhere below but above 0.0.

+ 4
- 0
Marlin/mesh_bed_leveling.h View File

@@ -24,6 +24,10 @@
24 24
 
25 25
 #if ENABLED(MESH_BED_LEVELING)
26 26
 
27
+  #define MESH_MIN_X (X_MIN_POS + MESH_INSET)
28
+  #define MESH_MAX_X (X_MAX_POS - (MESH_INSET))
29
+  #define MESH_MIN_Y (Y_MIN_POS + MESH_INSET)
30
+  #define MESH_MAX_Y (Y_MAX_POS - (MESH_INSET))
27 31
   #define MESH_X_DIST ((MESH_MAX_X - (MESH_MIN_X))/(MESH_NUM_X_POINTS - 1))
28 32
   #define MESH_Y_DIST ((MESH_MAX_Y - (MESH_MIN_Y))/(MESH_NUM_Y_POINTS - 1))
29 33
 

Loading…
Cancel
Save