|
|
@ -458,6 +458,8 @@
|
|
|
|
#define HEATER_0_USES_THERMISTOR 1
|
|
|
|
#define HEATER_0_USES_THERMISTOR 1
|
|
|
|
#if TEMP_SENSOR_0 == 1000
|
|
|
|
#if TEMP_SENSOR_0 == 1000
|
|
|
|
#define HEATER_0_USER_THERMISTOR 1
|
|
|
|
#define HEATER_0_USER_THERMISTOR 1
|
|
|
|
|
|
|
|
#elif TEMP_SENSOR_0 == 998 || TEMP_SENSOR_0 == 999
|
|
|
|
|
|
|
|
#define HEATER_0_DUMMY_THERMISTOR 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
#undef HEATER_0_MINTEMP
|
|
|
|
#undef HEATER_0_MINTEMP
|
|
|
@ -496,6 +498,8 @@
|
|
|
|
#define HEATER_1_USES_THERMISTOR 1
|
|
|
|
#define HEATER_1_USES_THERMISTOR 1
|
|
|
|
#if TEMP_SENSOR_1 == 1000
|
|
|
|
#if TEMP_SENSOR_1 == 1000
|
|
|
|
#define HEATER_1_USER_THERMISTOR 1
|
|
|
|
#define HEATER_1_USER_THERMISTOR 1
|
|
|
|
|
|
|
|
#elif TEMP_SENSOR_1 == 998 || TEMP_SENSOR_1 == 999
|
|
|
|
|
|
|
|
#define HEATER_1_DUMMY_THERMISTOR 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
#undef HEATER_1_MINTEMP
|
|
|
|
#undef HEATER_1_MINTEMP
|
|
|
@ -515,6 +519,8 @@
|
|
|
|
#define HEATER_2_USES_THERMISTOR 1
|
|
|
|
#define HEATER_2_USES_THERMISTOR 1
|
|
|
|
#if TEMP_SENSOR_2 == 1000
|
|
|
|
#if TEMP_SENSOR_2 == 1000
|
|
|
|
#define HEATER_2_USER_THERMISTOR 1
|
|
|
|
#define HEATER_2_USER_THERMISTOR 1
|
|
|
|
|
|
|
|
#elif TEMP_SENSOR_2 == 998 || TEMP_SENSOR_2 == 999
|
|
|
|
|
|
|
|
#define HEATER_2_DUMMY_THERMISTOR 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
#undef HEATER_2_MINTEMP
|
|
|
|
#undef HEATER_2_MINTEMP
|
|
|
@ -534,6 +540,8 @@
|
|
|
|
#define HEATER_3_USES_THERMISTOR 1
|
|
|
|
#define HEATER_3_USES_THERMISTOR 1
|
|
|
|
#if TEMP_SENSOR_3 == 1000
|
|
|
|
#if TEMP_SENSOR_3 == 1000
|
|
|
|
#define HEATER_3_USER_THERMISTOR 1
|
|
|
|
#define HEATER_3_USER_THERMISTOR 1
|
|
|
|
|
|
|
|
#elif TEMP_SENSOR_3 == 998 || TEMP_SENSOR_3 == 999
|
|
|
|
|
|
|
|
#define HEATER_3_DUMMY_THERMISTOR 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
#undef HEATER_3_MINTEMP
|
|
|
|
#undef HEATER_3_MINTEMP
|
|
|
@ -553,6 +561,8 @@
|
|
|
|
#define HEATER_4_USES_THERMISTOR 1
|
|
|
|
#define HEATER_4_USES_THERMISTOR 1
|
|
|
|
#if TEMP_SENSOR_4 == 1000
|
|
|
|
#if TEMP_SENSOR_4 == 1000
|
|
|
|
#define HEATER_4_USER_THERMISTOR 1
|
|
|
|
#define HEATER_4_USER_THERMISTOR 1
|
|
|
|
|
|
|
|
#elif TEMP_SENSOR_4 == 998 || TEMP_SENSOR_4 == 999
|
|
|
|
|
|
|
|
#define HEATER_4_DUMMY_THERMISTOR 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
#undef HEATER_4_MINTEMP
|
|
|
|
#undef HEATER_4_MINTEMP
|
|
|
@ -572,6 +582,8 @@
|
|
|
|
#define HEATER_5_USES_THERMISTOR 1
|
|
|
|
#define HEATER_5_USES_THERMISTOR 1
|
|
|
|
#if TEMP_SENSOR_5 == 1000
|
|
|
|
#if TEMP_SENSOR_5 == 1000
|
|
|
|
#define HEATER_5_USER_THERMISTOR 1
|
|
|
|
#define HEATER_5_USER_THERMISTOR 1
|
|
|
|
|
|
|
|
#elif TEMP_SENSOR_5 == 998 || TEMP_SENSOR_5 == 999
|
|
|
|
|
|
|
|
#define HEATER_5_DUMMY_THERMISTOR 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
#undef HEATER_5_MINTEMP
|
|
|
|
#undef HEATER_5_MINTEMP
|
|
|
@ -591,6 +603,8 @@
|
|
|
|
#define HEATER_6_USES_THERMISTOR 1
|
|
|
|
#define HEATER_6_USES_THERMISTOR 1
|
|
|
|
#if TEMP_SENSOR_6 == 1000
|
|
|
|
#if TEMP_SENSOR_6 == 1000
|
|
|
|
#define HEATER_6_USER_THERMISTOR 1
|
|
|
|
#define HEATER_6_USER_THERMISTOR 1
|
|
|
|
|
|
|
|
#elif TEMP_SENSOR_6 == 998 || TEMP_SENSOR_6 == 999
|
|
|
|
|
|
|
|
#define HEATER_6_DUMMY_THERMISTOR 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
#undef HEATER_6_MINTEMP
|
|
|
|
#undef HEATER_6_MINTEMP
|
|
|
@ -610,6 +624,8 @@
|
|
|
|
#define HEATER_7_USES_THERMISTOR 1
|
|
|
|
#define HEATER_7_USES_THERMISTOR 1
|
|
|
|
#if TEMP_SENSOR_7 == 1000
|
|
|
|
#if TEMP_SENSOR_7 == 1000
|
|
|
|
#define HEATER_7_USER_THERMISTOR 1
|
|
|
|
#define HEATER_7_USER_THERMISTOR 1
|
|
|
|
|
|
|
|
#elif TEMP_SENSOR_7 == 998 || TEMP_SENSOR_7 == 999
|
|
|
|
|
|
|
|
#define HEATER_7_DUMMY_THERMISTOR 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
#undef HEATER_7_MINTEMP
|
|
|
|
#undef HEATER_7_MINTEMP
|
|
|
@ -629,6 +645,8 @@
|
|
|
|
#define HEATER_BED_USES_THERMISTOR 1
|
|
|
|
#define HEATER_BED_USES_THERMISTOR 1
|
|
|
|
#if TEMP_SENSOR_BED == 1000
|
|
|
|
#if TEMP_SENSOR_BED == 1000
|
|
|
|
#define HEATER_BED_USER_THERMISTOR 1
|
|
|
|
#define HEATER_BED_USER_THERMISTOR 1
|
|
|
|
|
|
|
|
#elif TEMP_SENSOR_BED == 998 || TEMP_SENSOR_BED == 999
|
|
|
|
|
|
|
|
#define HEATER_BED_DUMMY_THERMISTOR 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
#undef BED_MINTEMP
|
|
|
|
#undef BED_MINTEMP
|
|
|
@ -648,6 +666,8 @@
|
|
|
|
#define HEATER_CHAMBER_USES_THERMISTOR 1
|
|
|
|
#define HEATER_CHAMBER_USES_THERMISTOR 1
|
|
|
|
#if TEMP_SENSOR_CHAMBER == 1000
|
|
|
|
#if TEMP_SENSOR_CHAMBER == 1000
|
|
|
|
#define HEATER_CHAMBER_USER_THERMISTOR 1
|
|
|
|
#define HEATER_CHAMBER_USER_THERMISTOR 1
|
|
|
|
|
|
|
|
#elif TEMP_SENSOR_CHAMBER == 998 || TEMP_SENSOR_CHAMBER == 999
|
|
|
|
|
|
|
|
#define HEATER_CHAMBER_DUMMY_THERMISTOR 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
#undef CHAMBER_MINTEMP
|
|
|
|
#undef CHAMBER_MINTEMP
|
|
|
@ -667,6 +687,8 @@
|
|
|
|
#define HEATER_PROBE_USES_THERMISTOR 1
|
|
|
|
#define HEATER_PROBE_USES_THERMISTOR 1
|
|
|
|
#if TEMP_SENSOR_PROBE == 1000
|
|
|
|
#if TEMP_SENSOR_PROBE == 1000
|
|
|
|
#define HEATER_PROBE_USER_THERMISTOR 1
|
|
|
|
#define HEATER_PROBE_USER_THERMISTOR 1
|
|
|
|
|
|
|
|
#elif TEMP_SENSOR_PROBE == 998 || TEMP_SENSOR_PROBE == 999
|
|
|
|
|
|
|
|
#define HEATER_PROBE_DUMMY_THERMISTOR 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
@ -1754,7 +1776,7 @@
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// ADC Temp Sensors (Thermistor or Thermocouple with amplifier ADC interface)
|
|
|
|
// ADC Temp Sensors (Thermistor or Thermocouple with amplifier ADC interface)
|
|
|
|
//
|
|
|
|
//
|
|
|
|
#define HAS_ADC_TEST(P) (PIN_EXISTS(TEMP_##P) && TEMP_SENSOR_##P != 0 && DISABLED(HEATER_##P##_USES_MAX6675))
|
|
|
|
#define HAS_ADC_TEST(P) (PIN_EXISTS(TEMP_##P) && TEMP_SENSOR_##P != 0 && NONE(HEATER_##P##_USES_MAX6675, HEATER_##P##_DUMMY_THERMISTOR))
|
|
|
|
#if HAS_ADC_TEST(0)
|
|
|
|
#if HAS_ADC_TEST(0)
|
|
|
|
#define HAS_TEMP_ADC_0 1
|
|
|
|
#define HAS_TEMP_ADC_0 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
@ -1789,7 +1811,7 @@
|
|
|
|
#define HAS_TEMP_ADC_CHAMBER 1
|
|
|
|
#define HAS_TEMP_ADC_CHAMBER 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if HAS_HOTEND && EITHER(HAS_TEMP_ADC_0, HEATER_0_USES_MAX6675)
|
|
|
|
#if HAS_HOTEND && ANY(HAS_TEMP_ADC_0, HEATER_0_USES_MAX6675, HEATER_0_DUMMY_THERMISTOR)
|
|
|
|
#define HAS_TEMP_HOTEND 1
|
|
|
|
#define HAS_TEMP_HOTEND 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#define HAS_TEMP_BED HAS_TEMP_ADC_BED
|
|
|
|
#define HAS_TEMP_BED HAS_TEMP_ADC_BED
|
|
|
|