Disable PIDTEMPBED with no bed…
…and move FILAMENT_CHANGE_SLOW_LOAD_LENGTH default to post-conditionals.
This commit is contained in:
parent
d70a4646f4
commit
cb02b6ec60
@ -358,12 +358,6 @@
|
|||||||
#define CHAMBER_USES_THERMISTOR
|
#define CHAMBER_USES_THERMISTOR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
|
||||||
* Flags for PID handling
|
|
||||||
*/
|
|
||||||
#define HAS_PID_HEATING (ENABLED(PIDTEMP) || ENABLED(PIDTEMPBED))
|
|
||||||
#define HAS_PID_FOR_BOTH (ENABLED(PIDTEMP) && ENABLED(PIDTEMPBED))
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default hotend offsets, if not defined
|
* Default hotend offsets, if not defined
|
||||||
*/
|
*/
|
||||||
@ -705,9 +699,17 @@
|
|||||||
#define HAS_HEATER_4 (PIN_EXISTS(HEATER_4))
|
#define HAS_HEATER_4 (PIN_EXISTS(HEATER_4))
|
||||||
#define HAS_HEATER_BED (PIN_EXISTS(HEATER_BED))
|
#define HAS_HEATER_BED (PIN_EXISTS(HEATER_BED))
|
||||||
|
|
||||||
|
// Shorthand for common combinations
|
||||||
#define HAS_HEATED_BED (HAS_TEMP_BED && HAS_HEATER_BED)
|
#define HAS_HEATED_BED (HAS_TEMP_BED && HAS_HEATER_BED)
|
||||||
#define HAS_TEMP_SENSOR (HAS_TEMP_HOTEND || HAS_HEATED_BED || HAS_TEMP_CHAMBER)
|
#define HAS_TEMP_SENSOR (HAS_TEMP_HOTEND || HAS_HEATED_BED || HAS_TEMP_CHAMBER)
|
||||||
|
|
||||||
|
// PID heating
|
||||||
|
#if !HAS_HEATED_BED
|
||||||
|
#undef PIDTEMPBED
|
||||||
|
#endif
|
||||||
|
#define HAS_PID_HEATING (ENABLED(PIDTEMP) || ENABLED(PIDTEMPBED))
|
||||||
|
#define HAS_PID_FOR_BOTH (ENABLED(PIDTEMP) && ENABLED(PIDTEMPBED))
|
||||||
|
|
||||||
// Thermal protection
|
// Thermal protection
|
||||||
#define HAS_THERMALLY_PROTECTED_BED (HAS_HEATED_BED && ENABLED(THERMAL_PROTECTION_BED))
|
#define HAS_THERMALLY_PROTECTED_BED (HAS_HEATED_BED && ENABLED(THERMAL_PROTECTION_BED))
|
||||||
#define WATCH_HOTENDS (ENABLED(THERMAL_PROTECTION_HOTENDS) && WATCH_TEMP_PERIOD > 0)
|
#define WATCH_HOTENDS (ENABLED(THERMAL_PROTECTION_HOTENDS) && WATCH_TEMP_PERIOD > 0)
|
||||||
@ -961,6 +963,10 @@
|
|||||||
#define QUIET_PROBING (HAS_BED_PROBE && (ENABLED(PROBING_HEATERS_OFF) || ENABLED(PROBING_FANS_OFF) || DELAY_BEFORE_PROBING > 0))
|
#define QUIET_PROBING (HAS_BED_PROBE && (ENABLED(PROBING_HEATERS_OFF) || ENABLED(PROBING_FANS_OFF) || DELAY_BEFORE_PROBING > 0))
|
||||||
#define HEATER_IDLE_HANDLER (ENABLED(ADVANCED_PAUSE_FEATURE) || ENABLED(PROBING_HEATERS_OFF))
|
#define HEATER_IDLE_HANDLER (ENABLED(ADVANCED_PAUSE_FEATURE) || ENABLED(PROBING_HEATERS_OFF))
|
||||||
|
|
||||||
|
#if ENABLED(ADVANCED_PAUSE_FEATURE) && !defined(FILAMENT_CHANGE_SLOW_LOAD_LENGTH)
|
||||||
|
#define FILAMENT_CHANGE_SLOW_LOAD_LENGTH 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Only constrain Z on DELTA / SCARA machines
|
* Only constrain Z on DELTA / SCARA machines
|
||||||
*/
|
*/
|
||||||
|
@ -10458,10 +10458,6 @@ inline void gcode_M502() {
|
|||||||
|
|
||||||
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|
||||||
|
|
||||||
#ifndef FILAMENT_CHANGE_SLOW_LOAD_LENGTH
|
|
||||||
#define FILAMENT_CHANGE_SLOW_LOAD_LENGTH 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* M600: Pause for filament change
|
* M600: Pause for filament change
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user