Sanity-check the chamber thermistor pin
This commit is contained in:
parent
a173f33997
commit
d8c3aed038
|
@ -1770,9 +1770,13 @@ static_assert(hbm[Z_AXIS] >= 0, "HOMING_BUMP_MM.Z must be greater than or equal
|
||||||
#error "TEMP_SENSOR_7 shouldn't be set with only 1 HOTEND."
|
#error "TEMP_SENSOR_7 shouldn't be set with only 1 HOTEND."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if TEMP_SENSOR_CHAMBER && !PIN_EXISTS(TEMP_CHAMBER)
|
||||||
|
#error "TEMP_SENSOR_CHAMBER requires TEMP_CHAMBER_PIN. Please add it to your configuration."
|
||||||
|
#endif
|
||||||
|
|
||||||
#if TEMP_SENSOR_PROBE
|
#if TEMP_SENSOR_PROBE
|
||||||
#if !PIN_EXISTS(TEMP_PROBE)
|
#if !PIN_EXISTS(TEMP_PROBE)
|
||||||
#error "TEMP_SENSOR_PROBE requires TEMP_PROBE_PIN."
|
#error "TEMP_SENSOR_PROBE requires TEMP_PROBE_PIN. Please add it to your configuration."
|
||||||
#elif !HAS_TEMP_ADC_PROBE
|
#elif !HAS_TEMP_ADC_PROBE
|
||||||
#error "TEMP_PROBE_PIN must be an ADC pin."
|
#error "TEMP_PROBE_PIN must be an ADC pin."
|
||||||
#elif !ENABLED(FIX_MOUNTED_PROBE)
|
#elif !ENABLED(FIX_MOUNTED_PROBE)
|
||||||
|
|
|
@ -59,8 +59,12 @@
|
||||||
#define TEMP_BED_PIN P0_23_A0 // A0 (T0) - (67) - TEMP_BED_PIN
|
#define TEMP_BED_PIN P0_23_A0 // A0 (T0) - (67) - TEMP_BED_PIN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HOTENDS == 1 && TEMP_SENSOR_PROBE
|
#if HOTENDS == 1
|
||||||
|
#if TEMP_SENSOR_PROBE
|
||||||
#define TEMP_PROBE_PIN TEMP_1_PIN
|
#define TEMP_PROBE_PIN TEMP_1_PIN
|
||||||
|
#elif TEMP_SENSOR_CHAMBER
|
||||||
|
#define TEMP_CHAMBER_PIN TEMP_1_PIN
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue