Configurable FREEZE pin state (#23944, #23948)

Co-Authored-By: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
ellensp
2022-03-26 16:44:22 +13:00
committed by Scott Lahteine
parent edc4089121
commit e99104a004
7 changed files with 17 additions and 20 deletions

View File

@ -189,7 +189,7 @@ bool Stepper::abort_current_block;
uint32_t Stepper::acceleration_time, Stepper::deceleration_time;
uint8_t Stepper::steps_per_isr;
#if HAS_FREEZE_PIN
#if ENABLED(FREEZE_FEATURE)
bool Stepper::frozen; // = false
#endif
@ -1643,7 +1643,7 @@ void Stepper::pulse_phase_isr() {
if (!current_block) return;
// Skipping step processing causes motion to freeze
if (TERN0(HAS_FREEZE_PIN, frozen)) return;
if (TERN0(FREEZE_FEATURE, frozen)) return;
// Count of pending loops and events for this iteration
const uint32_t pending_events = step_event_count - step_events_completed;

View File

@ -336,7 +336,7 @@ class Stepper {
static constexpr uint8_t last_moved_extruder = 0;
#endif
#if HAS_FREEZE_PIN
#if ENABLED(FREEZE_FEATURE)
static bool frozen; // Set this flag to instantly freeze motion
#endif