Browse Source

Merge pull request #1867 from epatel/Development

Added sanity check for MESH_NUM_X_POINTS and MESH_NUM_Y_POINTS
Scott Lahteine 9 years ago
parent
commit
837ceb9abb
2 changed files with 4 additions and 1 deletions
  1. 1
    1
      Marlin/Configuration.h
  2. 3
    0
      Marlin/SanityCheck.h

+ 1
- 1
Marlin/Configuration.h View File

@@ -420,7 +420,7 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
420 420
 //#define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
421 421
 
422 422
 //===========================================================================
423
-//============================ Manual Bed Leveling ==========================
423
+//============================ Mesh Bed Leveling ============================
424 424
 //===========================================================================
425 425
 
426 426
 // #define MANUAL_BED_LEVELING  // Add display menu option for bed leveling

+ 3
- 0
Marlin/SanityCheck.h View File

@@ -101,6 +101,9 @@
101 101
     #ifdef ENABLE_AUTO_BED_LEVELING
102 102
       #error Select ENABLE_AUTO_BED_LEVELING or MESH_BED_LEVELING, not both
103 103
     #endif
104
+    #if MESH_NUM_X_POINTS > 7 || MESH_NUM_Y_POINTS > 7
105
+      #error MESH_NUM_X_POINTS and MESH_NUM_Y_POINTS need to be less than 8
106
+    #endif
104 107
   #endif
105 108
 
106 109
   /**

Loading…
Cancel
Save