Simplify backlash compensation code. (#12813)

- Use `TEST(dm,axis)` to determine directions instead of doing comparisons.
- Remove recomputation of `millimeters` and `delta_mm` since backlash compensation should not affect the distance over which material is extruded.
This commit is contained in:
Marcio Teixeira
2019-01-04 12:30:56 -07:00
committed by Scott Lahteine
parent a59d3d4323
commit 6a8fb0f25f
2 changed files with 21 additions and 27 deletions

View File

@ -339,7 +339,7 @@ class Planner {
#endif
#if ENABLED(BACKLASH_COMPENSATION)
static void add_backlash_correction_steps(const int32_t da, const int32_t db, const int32_t dc, const uint8_t dm, block_t * const block, float (&delta_mm)[ABCE]);
static void add_backlash_correction_steps(const int32_t da, const int32_t db, const int32_t dc, const uint8_t dm, block_t * const block);
#endif
public: