Skip to content

Commit

Permalink
…as described
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Feb 28, 2022
1 parent f47f794 commit ea2a774
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Marlin/src/feature/backlash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ void Backlash::add_correction_steps(const int32_t &da, const int32_t &db, const
#endif
last_direction_bits ^= changed_dir;

if (correction == 0) return;

bool has_residual_err = false;
LOOP_LINEAR_AXES(axis) if (residual_error[axis]) { has_residual_err = true; break; }
if (!has_residual_err) return;
if (correction == 0) {
bool has_residual_err = false;
LOOP_LINEAR_AXES(axis) if (residual_error[axis]) { has_residual_err = true; break; }
if (!has_residual_err) return;
}

#ifdef BACKLASH_SMOOTHING_MM
// The segment proportion is a value greater than 0.0 indicating how much residual_error
Expand Down

0 comments on commit ea2a774

Please sign in to comment.