Browse Source

Fix HAS_CLASSIC_E_JERK and related issues (#15968)

Denis Semenov 5 years ago
parent
commit
0fcd1f4a49
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      Marlin/src/gcode/config/M92.cpp
  2. 1
    1
      Marlin/src/inc/Conditionals_post.h

+ 1
- 1
Marlin/src/gcode/config/M92.cpp View File

@@ -76,7 +76,7 @@ void GcodeSuite::M92() {
76 76
         const float value = parser.value_per_axis_units((AxisEnum)(E_AXIS_N(target_extruder)));
77 77
         if (value < 20) {
78 78
           float factor = planner.settings.axis_steps_per_mm[E_AXIS_N(target_extruder)] / value; // increase e constants if M92 E14 is given for netfab.
79
-          #if HAS_CLASSIC_E_JERK
79
+          #if HAS_CLASSIC_JERK && HAS_CLASSIC_E_JERK
80 80
             planner.max_jerk.e *= factor;
81 81
           #endif
82 82
           planner.settings.max_feedrate_mm_s[E_AXIS_N(target_extruder)] *= factor;

+ 1
- 1
Marlin/src/inc/Conditionals_post.h View File

@@ -44,7 +44,7 @@
44 44
 #endif
45 45
 
46 46
 #define HAS_CLASSIC_JERK (ENABLED(CLASSIC_JERK) || IS_KINEMATIC)
47
-#define HAS_CLASSIC_E_JERK (HAS_CLASSIC_JERK && DISABLED(LIN_ADVANCE))
47
+#define HAS_CLASSIC_E_JERK (ENABLED(CLASSIC_JERK) || DISABLED(LIN_ADVANCE))
48 48
 
49 49
 /**
50 50
  * Axis lengths and center

Loading…
Cancel
Save