From 0d4346542b79469cd5f8b5a3a825d9aa0812ab82 Mon Sep 17 00:00:00 2001 From: Knutwurst <36196269+knutwurst@users.noreply.github.com> Date: Sat, 22 Jan 2022 15:34:24 +0100 Subject: [PATCH] Disable POWER_OFF Pin for other printers than 4MAX so Pin 21 can be used for BLTouch. Also add two thermistor types for debugging purpose. --- Marlin/Configuration.h | 8 ++++++-- Marlin/src/pins/ramps/pins_RAMPS.h | 6 ++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index e857e49c..878a8d3d 100755 --- a/Marlin/Configuration.h +++ b/Marlin/Configuration.h @@ -581,7 +581,11 @@ * 999 : Dummy Table that ALWAYS reads 100°C or the temperature defined below. * */ -#define TEMP_SENSOR_0 11 +#if ENABLED(KNUTWURST_4MAXP2) + #define TEMP_SENSOR_0 11 +#else + #define TEMP_SENSOR_0 1 +#endif #define TEMP_SENSOR_1 0 #define TEMP_SENSOR_2 0 #define TEMP_SENSOR_3 0 @@ -589,7 +593,7 @@ #define TEMP_SENSOR_5 0 #define TEMP_SENSOR_6 0 #define TEMP_SENSOR_7 0 -#if ENABLED(KNUTWURST_4MAXP2) // 4MAX has type 1 +#if ENABLED(KNUTWURST_4MAXP2) #define TEMP_SENSOR_BED 5 #else #define TEMP_SENSOR_BED 1 diff --git a/Marlin/src/pins/ramps/pins_RAMPS.h b/Marlin/src/pins/ramps/pins_RAMPS.h index 814ef6e3..483616e5 100755 --- a/Marlin/src/pins/ramps/pins_RAMPS.h +++ b/Marlin/src/pins/ramps/pins_RAMPS.h @@ -266,8 +266,10 @@ #define FILWIDTH_PIN 5 // Analog Input on AUX2 #endif -#ifndef POWER_OFF_PIN - #define POWER_OFF_PIN 21 +#if ENABLED(DKNUTWURST_4MAXP2) + #ifndef POWER_OFF_PIN + #define POWER_OFF_PIN 21 + #endif #endif // RAMPS 1.4 DIO 4 on the servos connector