Browse Source

No unscaled_e_move for CNC

Scott Lahteine 5 years ago
parent
commit
223aa5cc4e
2 changed files with 13 additions and 9 deletions
  1. 10
    8
      Marlin/src/module/motion.cpp
  2. 3
    1
      Marlin/src/module/motion.h

+ 10
- 8
Marlin/src/module/motion.cpp View File

336
   planner.buffer_line(current_position, fr_mm_s, active_extruder);
336
   planner.buffer_line(current_position, fr_mm_s, active_extruder);
337
 }
337
 }
338
 
338
 
339
-void unscaled_e_move(const float &length, const feedRate_t &fr_mm_s) {
340
-  #if HAS_FILAMENT_SENSOR
341
-    runout.reset();
342
-  #endif
343
-  current_position.e += length / planner.e_factor[active_extruder];
344
-  line_to_current_position(fr_mm_s);
345
-  planner.synchronize();
346
-}
339
+#if EXTRUDERS
340
+  void unscaled_e_move(const float &length, const feedRate_t &fr_mm_s) {
341
+    #if HAS_FILAMENT_SENSOR
342
+      runout.reset();
343
+    #endif
344
+    current_position.e += length / planner.e_factor[active_extruder];
345
+    line_to_current_position(fr_mm_s);
346
+    planner.synchronize();
347
+  }
348
+#endif
347
 
349
 
348
 #if IS_KINEMATIC
350
 #if IS_KINEMATIC
349
 
351
 

+ 3
- 1
Marlin/src/module/motion.h View File

184
  */
184
  */
185
 void line_to_current_position(const feedRate_t &fr_mm_s=feedrate_mm_s);
185
 void line_to_current_position(const feedRate_t &fr_mm_s=feedrate_mm_s);
186
 
186
 
187
-void unscaled_e_move(const float &length, const feedRate_t &fr_mm_s);
187
+#if EXTRUDERS
188
+  void unscaled_e_move(const float &length, const feedRate_t &fr_mm_s);
189
+#endif
188
 
190
 
189
 void prepare_line_to_destination();
191
 void prepare_line_to_destination();
190
 
192
 

Loading…
Cancel
Save