Co-Authored-By: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
@ -2824,17 +2824,9 @@
|
||||
#endif
|
||||
|
||||
// User Interface
|
||||
#if ENABLED(FREEZE_FEATURE)
|
||||
#if !PIN_EXISTS(FREEZE) && PIN_EXISTS(KILL)
|
||||
#define FREEZE_PIN KILL_PIN
|
||||
#endif
|
||||
#if PIN_EXISTS(FREEZE)
|
||||
#define HAS_FREEZE_PIN 1
|
||||
#endif
|
||||
#else
|
||||
#undef FREEZE_PIN
|
||||
#endif
|
||||
#if PIN_EXISTS(KILL) && TERN1(FREEZE_FEATURE, KILL_PIN != FREEZE_PIN)
|
||||
#if ENABLED(FREEZE_FEATURE) && !PIN_EXISTS(FREEZE) && PIN_EXISTS(KILL)
|
||||
#define FREEZE_PIN KILL_PIN
|
||||
#elif PIN_EXISTS(KILL) && TERN1(FREEZE_FEATURE, KILL_PIN != FREEZE_PIN)
|
||||
#define HAS_KILL 1
|
||||
#endif
|
||||
#if PIN_EXISTS(HOME)
|
||||
|
@ -1035,8 +1035,8 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
||||
/**
|
||||
* Instant Freeze
|
||||
*/
|
||||
#if ENABLED(FREEZE_FEATURE) && !PIN_EXISTS(FREEZE)
|
||||
#error "FREEZE_FEATURE requires a FREEZE_PIN to be defined."
|
||||
#if ENABLED(FREEZE_FEATURE) && !(PIN_EXISTS(FREEZE) && defined(FREEZE_STATE))
|
||||
#error "FREEZE_FEATURE requires both FREEZE_PIN and FREEZE_STATE."
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user