소스 검색

Added sanity check for MESH_NUM_X_POINTS and MESH_NUM_Y_POINTS

Edward Patel 10 년 전
부모
커밋
7dc64efe67
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      Marlin/Configuration.h
  2. 3
    0
      Marlin/SanityCheck.h

+ 1
- 1
Marlin/Configuration.h 파일 보기

420
 //#define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
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
 // #define MANUAL_BED_LEVELING  // Add display menu option for bed leveling
426
 // #define MANUAL_BED_LEVELING  // Add display menu option for bed leveling

+ 3
- 0
Marlin/SanityCheck.h 파일 보기

101
     #ifdef ENABLE_AUTO_BED_LEVELING
101
     #ifdef ENABLE_AUTO_BED_LEVELING
102
       #error Select ENABLE_AUTO_BED_LEVELING or MESH_BED_LEVELING, not both
102
       #error Select ENABLE_AUTO_BED_LEVELING or MESH_BED_LEVELING, not both
103
     #endif
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
   #endif
107
   #endif
105
 
108
 
106
   /**
109
   /**

Loading…
취소
저장