Co-Authored-By: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user