Pārlūkot izejas kodu

no need to use destination in do_pause_e_move

Scott Lahteine 6 gadus atpakaļ
vecāks
revīzija
cf0b9eb37c
1 mainītis faili ar 2 papildinājumiem un 4 dzēšanām
  1. 2
    4
      Marlin/src/feature/pause.cpp

+ 2
- 4
Marlin/src/feature/pause.cpp Parādīt failu

@@ -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
 

Notiek ielāde…
Atcelt
Saglabāt