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

Merge pull request #7811 from thinkyhead/bf1_fix_resume_print

[1.1.x] Fix broken M600 resume_print
Scott Lahteine 7 роки тому
джерело
коміт
f365448338
2 змінених файлів з 6 додано та 4 видалено
  1. 4
    2
      Marlin/Marlin_main.cpp
  2. 2
    2
      Marlin/ultralcd_impl_HD44780.h

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

@@ -5674,7 +5674,7 @@ void home_all_axes() { gcode_G28(true); }
5674 5674
           float a_sum = 0.0;
5675 5675
           LOOP_XYZ(axis) a_sum += delta_tower_angle_trim[axis];
5676 5676
           LOOP_XYZ(axis) delta_tower_angle_trim[axis] -= a_sum / 3.0;
5677
-          
5677
+
5678 5678
           // adjust delta_height and endstops by the max amount
5679 5679
           const float z_temp = MAX3(endstop_adj[A_AXIS], endstop_adj[B_AXIS], endstop_adj[C_AXIS]);
5680 5680
           home_offset[Z_AXIS] -= z_temp;
@@ -6369,6 +6369,8 @@ inline void gcode_M17() {
6369 6369
       filament_change_beep(max_beep_count, true);
6370 6370
     #endif
6371 6371
 
6372
+    set_destination_to_current();
6373
+
6372 6374
     if (load_length != 0) {
6373 6375
       #if ENABLED(ULTIPANEL)
6374 6376
         // Show "insert filament"
@@ -8580,7 +8582,7 @@ inline void gcode_M205() {
8580 8582
     #endif
8581 8583
     LOOP_XYZ(i) {
8582 8584
       if (parser.seen(axis_codes[i])) {
8583
-        if (parser.value_linear_units() * Z_HOME_DIR <= 0)         
8585
+        if (parser.value_linear_units() * Z_HOME_DIR <= 0)
8584 8586
           endstop_adj[i] = parser.value_linear_units();
8585 8587
         #if ENABLED(DEBUG_LEVELING_FEATURE)
8586 8588
           if (DEBUGGING(LEVELING)) {

+ 2
- 2
Marlin/ultralcd_impl_HD44780.h Переглянути файл

@@ -790,11 +790,11 @@ static void lcd_implementation_status_screen() {
790 790
     lcd.setCursor(LCD_WIDTH - 8, 1);
791 791
     _draw_axis_label(Z_AXIS, PSTR(MSG_Z), blink);
792 792
     lcd.print(ftostr52sp(FIXFLOAT(current_position[Z_AXIS])));
793
-    
793
+
794 794
     #if HAS_LEVELING
795 795
       lcd.write(leveling_is_active() || blink ? '_' : ' ');
796 796
     #endif
797
-  
797
+
798 798
   #endif // LCD_HEIGHT > 2
799 799
 
800 800
   //

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