Переглянути джерело

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 10 роки тому
джерело
коміт
52fcc743ab
1 змінених файлів з 3 додано та 2 видалено
  1. 3
    2
      Marlin/Marlin_main.cpp

+ 3
- 2
Marlin/Marlin_main.cpp Переглянути файл

4987
         lcd_update();
4987
         lcd_update();
4988
       #else
4988
       #else
4989
         current_position[E_AXIS] += AUTO_FILAMENT_CHANGE_LENGTH;
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
         st_synchronize();
4992
         st_synchronize();
4992
       #endif
4993
       #endif
4993
     } // while(!lcd_clicked)
4994
     } // while(!lcd_clicked)
4994
     lcd_quick_feedback(); // click sound feedback
4995
     lcd_quick_feedback(); // click sound feedback
4995
 
4996
 
4996
     #ifdef AUTO_FILAMENT_CHANGE
4997
     #ifdef AUTO_FILAMENT_CHANGE
4997
-      current_position[E_AXIS]= 0;
4998
+      current_position[E_AXIS] = 0;
4998
       st_synchronize();
4999
       st_synchronize();
4999
     #endif
5000
     #endif
5000
           
5001
           

Завантаження…
Відмінити
Зберегти