Browse Source

Squelch warning mentioned in #11061 (#12676)

Marcio Teixeira 6 years ago
parent
commit
8dcc28c9ae
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      Marlin/src/module/planner.cpp

+ 4
- 2
Marlin/src/module/planner.cpp View File

@@ -1598,8 +1598,10 @@ void Planner::synchronize() {
1598 1598
       if (!changed_dir) return;
1599 1599
     #endif
1600 1600
 
1601
-    const bool positive[XYZ] = {  da > 0,  db > 0, dc > 0 },
1602
-               non_zero[XYZ] = { da != 0, db != 0, dc != 0 };
1601
+    const bool positive[XYZ] = {  da > 0,  db > 0, dc > 0 };
1602
+    #ifdef BACKLASH_SMOOTHING_MM
1603
+      const bool non_zero[XYZ] = { da != 0, db != 0, dc != 0 };
1604
+    #endif
1603 1605
     bool made_adjustment = false;
1604 1606
 
1605 1607
     LOOP_XYZ(i) {

Loading…
Cancel
Save