浏览代码

Squish the code down a little

Scott Lahteine 10 年前
父节点
当前提交
996d0a9185
共有 1 个文件被更改,包括 5 次插入7 次删除
  1. 5
    7
      Marlin/Marlin_main.cpp

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

1501
 
1501
 
1502
   if (axis == X_AXIS ? HOMEAXIS_DO(X) : axis == Y_AXIS ? HOMEAXIS_DO(Y) : axis == Z_AXIS ? HOMEAXIS_DO(Z) : 0) {
1502
   if (axis == X_AXIS ? HOMEAXIS_DO(X) : axis == Y_AXIS ? HOMEAXIS_DO(Y) : axis == Z_AXIS ? HOMEAXIS_DO(Z) : 0) {
1503
 
1503
 
1504
-    int axis_home_dir;
1505
-
1506
-    #ifdef DUAL_X_CARRIAGE
1507
-      axis_home_dir = (axis == X_AXIS) ? x_home_dir(active_extruder) : home_dir(axis);
1508
-    #else
1509
-      axis_home_dir = home_dir(axis);
1510
-    #endif
1504
+    int axis_home_dir =
1505
+      #ifdef DUAL_X_CARRIAGE
1506
+        (axis == X_AXIS) ? x_home_dir(active_extruder) :
1507
+      #endif
1508
+      home_dir(axis);
1511
 
1509
 
1512
     // Set the axis position as setup for the move
1510
     // Set the axis position as setup for the move
1513
     current_position[axis] = 0;
1511
     current_position[axis] = 0;

正在加载...
取消
保存