瀏覽代碼

Rename axis_is_at_home() to set_axis_is_at_home() (PR#2464)

to make clear - it's not a question but an order.
AnHardt 10 年之前
父節點
當前提交
d15d869267
共有 1 個檔案被更改,包括 5 行新增5 行删除
  1. 5
    5
      Marlin/Marlin_main.cpp

+ 5
- 5
Marlin/Marlin_main.cpp 查看文件

1023
 
1023
 
1024
 #endif //DUAL_X_CARRIAGE
1024
 #endif //DUAL_X_CARRIAGE
1025
 
1025
 
1026
-static void axis_is_at_home(AxisEnum axis) {
1026
+static void set_axis_is_at_home(AxisEnum axis) {
1027
 
1027
 
1028
   #ifdef DUAL_X_CARRIAGE
1028
   #ifdef DUAL_X_CARRIAGE
1029
     if (axis == X_AXIS) {
1029
     if (axis == X_AXIS) {
1739
     #endif
1739
     #endif
1740
 
1740
 
1741
     // Set the axis position to its home position (plus home offsets)
1741
     // Set the axis position to its home position (plus home offsets)
1742
-    axis_is_at_home(axis);
1742
+    set_axis_is_at_home(axis);
1743
     sync_plan_position();
1743
     sync_plan_position();
1744
 
1744
 
1745
     destination[axis] = current_position[axis];
1745
     destination[axis] = current_position[axis];
2197
         line_to_destination();
2197
         line_to_destination();
2198
         st_synchronize();
2198
         st_synchronize();
2199
 
2199
 
2200
-        axis_is_at_home(X_AXIS);
2200
+        set_axis_is_at_home(X_AXIS);
2201
-        axis_is_at_home(Y_AXIS);
2201
+        set_axis_is_at_home(Y_AXIS);
2202
         sync_plan_position();
2202
         sync_plan_position();
2203
 
2203
 
2204
         destination[X_AXIS] = current_position[X_AXIS];
2204
         destination[X_AXIS] = current_position[X_AXIS];
5246
           active_extruder = tmp_extruder;
5246
           active_extruder = tmp_extruder;
5247
 
5247
 
5248
           // This function resets the max/min values - the current position may be overwritten below.
5248
           // This function resets the max/min values - the current position may be overwritten below.
5249
-          axis_is_at_home(X_AXIS);
5249
+          set_axis_is_at_home(X_AXIS);
5250
 
5250
 
5251
           if (dual_x_carriage_mode == DXC_FULL_CONTROL_MODE) {
5251
           if (dual_x_carriage_mode == DXC_FULL_CONTROL_MODE) {
5252
             current_position[X_AXIS] = inactive_extruder_x_pos;
5252
             current_position[X_AXIS] = inactive_extruder_x_pos;

Loading…
取消
儲存