Sanity-check the chamber thermistor pin

This commit is contained in:
Scott Lahteine 2020-06-19 14:01:15 -05:00
parent a173f33997
commit d8c3aed038
3 changed files with 15 additions and 7 deletions

View file

@ -1692,16 +1692,16 @@
#if ENABLED(JOYSTICK) #if ENABLED(JOYSTICK)
#if PIN_EXISTS(JOY_X) #if PIN_EXISTS(JOY_X)
#define HAS_JOY_ADC_X 1 #define HAS_JOY_ADC_X 1
#endif #endif
#if PIN_EXISTS(JOY_Y) #if PIN_EXISTS(JOY_Y)
#define HAS_JOY_ADC_Y 1 #define HAS_JOY_ADC_Y 1
#endif #endif
#if PIN_EXISTS(JOY_Z) #if PIN_EXISTS(JOY_Z)
#define HAS_JOY_ADC_Z 1 #define HAS_JOY_ADC_Z 1
#endif #endif
#if PIN_EXISTS(JOY_EN) #if PIN_EXISTS(JOY_EN)
#define HAS_JOY_ADC_EN 1 #define HAS_JOY_ADC_EN 1
#endif #endif
#endif #endif
// Heaters // Heaters

View file

@ -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)

View file

@ -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
// //