Skip to content

Commit

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

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;
}
if (!correction && !residual_error) 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 14adc71

Please sign in to comment.