Browse Source

Fix planner.cpp compile (#16996)

Makoto Schoppert 4 years ago
parent
commit
8164cac797
No account linked to committer's email address
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/src/module/planner.cpp

+ 3
- 3
Marlin/src/module/planner.cpp View File

@@ -2403,10 +2403,10 @@ bool Planner::_populate_block(block_t * const block, bool split_move,
2403 2403
       LOOP_XYZE(i)
2404 2404
     #endif
2405 2405
     {
2406
-      const float jerk = ABS(current_speed[i]);   // cs : Starting from zero, change in speed for this axis
2407
-                  maxj = (max_jerk[axis]          // mj : The max jerk setting for this axis
2406
+      const float jerk = ABS(current_speed[i]),   // cs : Starting from zero, change in speed for this axis
2407
+                  maxj = (max_jerk[i]             // mj : The max jerk setting for this axis
2408 2408
                     #ifdef TRAVEL_EXTRA_XYJERK
2409
-                      + (axis == X_AXIS || axis == Y_AXIS ? extra_xyjerk : 0)
2409
+                      + (i == X_AXIS || i == Y_AXIS ? extra_xyjerk : 0)
2410 2410
                     #endif
2411 2411
                   );
2412 2412
 

Loading…
Cancel
Save