Browse Source

Sanity check for too many temp sensors

Scott Lahteine 9 years ago
parent
commit
a5212bf277
1 changed files with 13 additions and 1 deletions
  1. 13
    1
      Marlin/SanityCheck.h

+ 13
- 1
Marlin/SanityCheck.h View File

@@ -564,8 +564,20 @@
564 564
       #elif !PIN_EXISTS(TEMP_3)
565 565
         #error "TEMP_3_PIN not defined for this board."
566 566
       #endif
567
+    #elif TEMP_SENSOR_3 != 0
568
+      #error "TEMP_SENSOR_3 shouldn't be set with only 3 extruders."
567 569
     #endif
568
-  #endif
570
+  #elif TEMP_SENSOR_2 != 0
571
+    #error "TEMP_SENSOR_2 shouldn't be set with only 2 extruders."
572
+  #elif TEMP_SENSOR_3 != 0
573
+    #error "TEMP_SENSOR_3 shouldn't be set with only 2 extruders."
574
+  #endif
575
+#elif TEMP_SENSOR_1 != 0 && DISABLED(TEMP_SENSOR_1_AS_REDUNDANT)
576
+  #error "TEMP_SENSOR_1 shouldn't be set with only 1 extruder."
577
+#elif TEMP_SENSOR_2 != 0
578
+  #error "TEMP_SENSOR_2 shouldn't be set with only 1 extruder."
579
+#elif TEMP_SENSOR_3 != 0
580
+  #error "TEMP_SENSOR_3 shouldn't be set with only 1 extruder."
569 581
 #endif
570 582
 
571 583
 #if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT) && TEMP_SENSOR_1 == 0

Loading…
Cancel
Save