Browse Source

Require extruders for thermal code

Scott Lahteine 9 years ago
parent
commit
77e80ef367
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/temperature.cpp

+ 3
- 3
Marlin/temperature.cpp View File

1550
       if (minttemp_raw[0] GE0 current_temperature_raw[0]) min_temp_error(0);
1550
       if (minttemp_raw[0] GE0 current_temperature_raw[0]) min_temp_error(0);
1551
     #endif
1551
     #endif
1552
 
1552
 
1553
-    #if HAS_TEMP_1
1553
+    #if HAS_TEMP_1 && EXTRUDERS > 1
1554
       #if HEATER_1_RAW_LO_TEMP > HEATER_1_RAW_HI_TEMP
1554
       #if HEATER_1_RAW_LO_TEMP > HEATER_1_RAW_HI_TEMP
1555
         #define GE1 <=
1555
         #define GE1 <=
1556
       #else
1556
       #else
1560
       if (minttemp_raw[1] GE1 current_temperature_raw[1]) min_temp_error(1);
1560
       if (minttemp_raw[1] GE1 current_temperature_raw[1]) min_temp_error(1);
1561
     #endif // TEMP_SENSOR_1
1561
     #endif // TEMP_SENSOR_1
1562
 
1562
 
1563
-    #if HAS_TEMP_2
1563
+    #if HAS_TEMP_2 && EXTRUDERS > 2
1564
       #if HEATER_2_RAW_LO_TEMP > HEATER_2_RAW_HI_TEMP
1564
       #if HEATER_2_RAW_LO_TEMP > HEATER_2_RAW_HI_TEMP
1565
         #define GE2 <=
1565
         #define GE2 <=
1566
       #else
1566
       #else
1570
       if (minttemp_raw[2] GE2 current_temperature_raw[2]) min_temp_error(2);
1570
       if (minttemp_raw[2] GE2 current_temperature_raw[2]) min_temp_error(2);
1571
     #endif // TEMP_SENSOR_2
1571
     #endif // TEMP_SENSOR_2
1572
 
1572
 
1573
-    #if HAS_TEMP_3
1573
+    #if HAS_TEMP_3 && EXTRUDERS > 3
1574
       #if HEATER_3_RAW_LO_TEMP > HEATER_3_RAW_HI_TEMP
1574
       #if HEATER_3_RAW_LO_TEMP > HEATER_3_RAW_HI_TEMP
1575
         #define GE3 <=
1575
         #define GE3 <=
1576
       #else
1576
       #else

Loading…
Cancel
Save