Browse Source

Sanity check homing bumps

Scott Lahteine 8 years ago
parent
commit
0951bffcc0
2 changed files with 9 additions and 2 deletions
  1. 1
    1
      Marlin/Marlin_main.cpp
  2. 8
    1
      Marlin/SanityCheck.h

+ 1
- 1
Marlin/Marlin_main.cpp View File

@@ -9104,7 +9104,7 @@ void stop() {
9104 9104
  */
9105 9105
 void setup() {
9106 9106
 
9107
-  #if ENABLED(DISABLE_JTAG)
9107
+  #ifdef DISABLE_JTAG
9108 9108
     // Disable JTAG on AT90USB chips to free up pins for IO
9109 9109
     MCUCR = 0x80;
9110 9110
     MCUCR = 0x80;

+ 8
- 1
Marlin/SanityCheck.h View File

@@ -48,7 +48,7 @@
48 48
   #error "You are using an old Configuration_adv.h file, update it before building Marlin."
49 49
 #endif
50 50
 
51
- /**
51
+/**
52 52
  * Warnings for old configurations
53 53
  */
54 54
 #if WATCH_TEMP_PERIOD > 500
@@ -451,6 +451,13 @@
451 451
 #endif
452 452
 
453 453
 /**
454
+ * Homing Bump
455
+ */
456
+#if X_HOME_BUMP_MM < 0 || Y_HOME_BUMP_MM < 0 || Z_HOME_BUMP_MM < 0
457
+  #error "[XYZ]_HOME_BUMP_MM must be greater than or equal to 0."
458
+#endif
459
+
460
+/**
454 461
  * Make sure Z_SAFE_HOMING point is reachable
455 462
  */
456 463
 #if ENABLED(Z_SAFE_HOMING)

Loading…
Cancel
Save