소스 검색

Merge pull request #7829 from thinkyhead/bf2_fix_dualx_manual

[2.0.x] Fix DUAL_X_CARRIAGE manual move
Scott Lahteine 7 년 전
부모
커밋
ab4943e24c
4개의 변경된 파일11개의 추가작업 그리고 9개의 파일을 삭제
  1. 0
    3
      Marlin/src/feature/tmc2130.cpp
  2. 8
    4
      Marlin/src/lcd/ultralcd.cpp
  3. 1
    0
      Marlin/src/lcd/ultralcd.h
  4. 2
    2
      Marlin/src/module/motion.cpp

+ 0
- 3
Marlin/src/feature/tmc2130.cpp 파일 보기

@@ -125,9 +125,6 @@ void tmc2130_checkOverTemp(void) {
125 125
     #if ENABLED(E4_IS_TMC2130)
126 126
       automatic_current_control(stepperE4, "E4");
127 127
     #endif
128
-    #if ENABLED(E4_IS_TMC2130)
129
-      automatic_current_control(stepperE4);
130
-    #endif
131 128
   }
132 129
 }
133 130
 

+ 8
- 4
Marlin/src/lcd/ultralcd.cpp 파일 보기

@@ -212,7 +212,7 @@ uint16_t max_display_update_time = 0;
212 212
   void _menu_action_back();
213 213
   void menu_action_submenu(screenFunc_t data);
214 214
   void menu_action_gcode(const char* pgcode);
215
-  void menu_action_function(screenFunc_t data);
215
+  void menu_action_function(menuAction_t data);
216 216
 
217 217
   #define DECLARE_MENU_EDIT_TYPE(_type, _name) \
218 218
     bool _menu_edit_ ## _name(); \
@@ -2750,9 +2750,13 @@ void kill_screen(const char* lcd_msg) {
2750 2750
       , int8_t eindex=-1
2751 2751
     #endif
2752 2752
   ) {
2753
-    #if E_MANUAL > 1
2754
-      if (axis == E_AXIS) manual_move_e_index = eindex >= 0 ? eindex : active_extruder;
2753
+    #if ENABLED(DUAL_X_CARRIAGE) || E_MANUAL > 1
2754
+      #if E_MANUAL > 1
2755
+        if (axis == E_AXIS)
2756
+      #endif
2757
+          manual_move_e_index = eindex >= 0 ? eindex : active_extruder;
2755 2758
     #endif
2759
+
2756 2760
     manual_move_start_time = millis() + (move_menu_scale < 0.99 ? 0UL : 250UL); // delay for bigger moves
2757 2761
     manual_move_axis = (int8_t)axis;
2758 2762
   }
@@ -2963,7 +2967,7 @@ void kill_screen(const char* lcd_msg) {
2963 2967
     else
2964 2968
       MENU_ITEM(gcode, MSG_AUTO_HOME, PSTR("G28"));
2965 2969
 
2966
-    #if ENABLED(SWITCHING_EXTRUDER)
2970
+    #if ENABLED(SWITCHING_EXTRUDER) || ENABLED(DUAL_X_CARRIAGE)
2967 2971
       if (active_extruder)
2968 2972
         MENU_ITEM(gcode, MSG_SELECT " " MSG_E1, PSTR("T0"));
2969 2973
       else

+ 1
- 0
Marlin/src/lcd/ultralcd.h 파일 보기

@@ -84,6 +84,7 @@
84 84
 
85 85
     // Function pointer to menu functions.
86 86
     typedef void (*screenFunc_t)();
87
+    typedef void (*menuAction_t)();
87 88
 
88 89
     void lcd_goto_screen(screenFunc_t screen, const uint32_t encoder=0);
89 90
 

+ 2
- 2
Marlin/src/module/motion.cpp 파일 보기

@@ -769,7 +769,7 @@ float soft_endstop_min[XYZ] = { X_MIN_BED, Y_MIN_BED, Z_MIN_POS },
769 769
           break;
770 770
       }
771 771
     }
772
-    return false;
772
+    return prepare_move_to_destination_cartesian();
773 773
   }
774 774
 
775 775
 #endif // DUAL_X_CARRIAGE
@@ -811,7 +811,7 @@ void prepare_move_to_destination() {
811 811
     #elif IS_KINEMATIC
812 812
       prepare_kinematic_move_to(destination)
813 813
     #elif ENABLED(DUAL_X_CARRIAGE)
814
-      prepare_move_to_destination_dualx() || prepare_move_to_destination_cartesian()
814
+      prepare_move_to_destination_dualx()
815 815
     #else
816 816
       prepare_move_to_destination_cartesian()
817 817
     #endif

Loading…
취소
저장