Selaa lähdekoodia

no need to use destination in do_pause_e_move

Scott Lahteine 6 vuotta sitten
vanhempi
commit
cf0b9eb37c
1 muutettua tiedostoa jossa 2 lisäystä ja 4 poistoa
  1. 2
    4
      Marlin/src/feature/pause.cpp

+ 2
- 4
Marlin/src/feature/pause.cpp Näytä tiedosto

@@ -113,10 +113,8 @@ static bool ensure_safe_temperature(const AdvancedPauseMode mode=ADVANCED_PAUSE_
113 113
 }
114 114
 
115 115
 static void do_pause_e_move(const float &length, const float &fr) {
116
-  set_destination_from_current();
117
-  destination[E_AXIS] += length / planner.e_factor[active_extruder];
118
-  planner.buffer_line(destination, fr, active_extruder);
119
-  set_current_from_destination();
116
+  current_position[E_AXIS] += length / planner.e_factor[active_extruder];
117
+  planner.buffer_line(current_position, fr, active_extruder);
120 118
   planner.synchronize();
121 119
 }
122 120
 

Loading…
Peruuta
Tallenna