Procházet zdrojové kódy

Replace "target" with "destination" in M600 (PR#2374)

- Also fix a bug in `M600` where `Z_MAX_ENDSTOP_INVERTING` is being
used as the index into the `destination[AxisEnum]` array.
Scott Lahteine před 10 roky
rodič
revize
52fcc743ab
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 3
    2
      Marlin/Marlin_main.cpp

+ 3
- 2
Marlin/Marlin_main.cpp Zobrazit soubor

@@ -4987,14 +4987,15 @@ inline void gcode_M503() {
4987 4987
         lcd_update();
4988 4988
       #else
4989 4989
         current_position[E_AXIS] += AUTO_FILAMENT_CHANGE_LENGTH;
4990
-        plan_buffer_line(target[X_AXIS],target[Y_AXIS],target[Z_MAX_ENDSTOP_INVERTING],current_position[E_AXIS],AUTO_FILAMENT_CHANGE_FEEDRATE/60,active_extruder);
4990
+        destination[E_AXIS] = current_position[E_AXIS];
4991
+        line_to_destination(AUTO_FILAMENT_CHANGE_FEEDRATE);
4991 4992
         st_synchronize();
4992 4993
       #endif
4993 4994
     } // while(!lcd_clicked)
4994 4995
     lcd_quick_feedback(); // click sound feedback
4995 4996
 
4996 4997
     #ifdef AUTO_FILAMENT_CHANGE
4997
-      current_position[E_AXIS]= 0;
4998
+      current_position[E_AXIS] = 0;
4998 4999
       st_synchronize();
4999 5000
     #endif
5000 5001
           

Loading…
Zrušit
Uložit