From c3a92a8f2957cb15cffba41c41a7b3b667ec6596 Mon Sep 17 00:00:00 2001 From: Schildkroet Date: Thu, 16 Dec 2021 16:47:49 +0100 Subject: [PATCH] Fix pwm issue with backlash #75 --- grbl/MotionControl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grbl/MotionControl.c b/grbl/MotionControl.c index 8768ac3..9a43bae 100644 --- a/grbl/MotionControl.c +++ b/grbl/MotionControl.c @@ -172,7 +172,7 @@ void MC_Line(float *target, Planner_LineData_t *pl_data) #ifdef ENABLE_BACKLASH_COMPENSATION pl_backlash.backlash_motion = 1; - pl_backlash.condition = PL_COND_FLAG_RAPID_MOTION; // Set rapid motion condition flag. + pl_backlash.condition = pl_data->condition | PL_COND_FLAG_RAPID_MOTION; // Set rapid motion condition flag. // Backlash compensation (not for A & B) for(uint8_t i = 0; i < N_LINEAR_AXIS; i++)