浏览代码

Cleanup of old includes, add comments

Scott Lahteine 4 年前
父节点
当前提交
e8ed4329ea
共有 3 个文件被更改,包括 15 次插入15 次删除
  1. 1
    1
      Marlin/Configuration_adv.h
  2. 4
    4
      Marlin/src/gcode/lcd/M0_M1.cpp
  3. 10
    10
      Marlin/src/pins/rambo/pins_EINSY_RETRO.h

+ 1
- 1
Marlin/Configuration_adv.h 查看文件

@@ -819,7 +819,7 @@
819 819
   // probing on a screwhead or hollow washer, probe near the edges.
820 820
   //#define CALIBRATION_MEASURE_AT_TOP_EDGES
821 821
 
822
-  // Define pin which is read during calibration
822
+  // Define the pin to read during calibration
823 823
   #ifndef CALIBRATION_PIN
824 824
     #define CALIBRATION_PIN -1 // Override in pins.h or set to -1 to use your Z endstop
825 825
     #define CALIBRATION_PIN_INVERTING false // Set to true to invert the pin

+ 4
- 4
Marlin/src/gcode/lcd/M0_M1.cpp 查看文件

@@ -20,12 +20,14 @@
20 20
  *
21 21
  */
22 22
 
23
-#include "../../inc/MarlinConfig.h"
23
+#include "../../inc/MarlinConfigPre.h"
24 24
 
25 25
 #if HAS_RESUME_CONTINUE
26 26
 
27 27
 #include "../gcode.h"
28
-#include "../../module/stepper.h"
28
+#include "../../module/planner.h"
29
+
30
+#include "../../inc/MarlinConfig.h"
29 31
 
30 32
 #if HAS_LCD_MENU
31 33
   #include "../../lcd/ultralcd.h"
@@ -35,8 +37,6 @@
35 37
   #include "../../lcd/extensible_ui/ui_api.h"
36 38
 #endif
37 39
 
38
-#include "../../sd/cardreader.h"
39
-
40 40
 #if HAS_LEDS_OFF_FLAG
41 41
   #include "../../feature/leds/printer_event_leds.h"
42 42
 #endif

+ 10
- 10
Marlin/src/pins/rambo/pins_EINSY_RETRO.h 查看文件

@@ -38,7 +38,7 @@
38 38
   #error "You must set ([XYZ]|E0)_DRIVER_TYPE to TMC2130 in Configuration.h for EinsyRetro."
39 39
 #endif
40 40
 
41
-// TMC2130 Diag Pins (currently just for reference)
41
+// TMC2130 Diag Pins
42 42
 #define X_DIAG_PIN         64
43 43
 #define Y_DIAG_PIN         69
44 44
 #define Z_DIAG_PIN         68
@@ -55,27 +55,27 @@
55 55
 
56 56
 #if DISABLED(SENSORLESS_HOMING)
57 57
 
58
-  #define X_MIN_PIN        12
59
-  #define Y_MIN_PIN        11
60
-  #define Z_MIN_PIN        10
61
-  #define X_MAX_PIN        81
62
-  #define Y_MAX_PIN        57
58
+  #define X_MIN_PIN        12   // X-
59
+  #define Y_MIN_PIN        11   // Y-
60
+  #define Z_MIN_PIN        10   // Z-
61
+  #define X_MAX_PIN        81   // X+
62
+  #define Y_MAX_PIN        57   // Y+
63 63
 
64 64
 #else
65 65
 
66 66
   #if X_HOME_DIR < 0
67 67
     #define X_MIN_PIN      X_DIAG_PIN
68
-    #define X_MAX_PIN      81
68
+    #define X_MAX_PIN      81   // X+
69 69
   #else
70
-    #define X_MIN_PIN      12
70
+    #define X_MIN_PIN      12   // X-
71 71
     #define X_MAX_PIN      X_DIAG_PIN
72 72
   #endif
73 73
 
74 74
   #if Y_HOME_DIR < 0
75 75
     #define Y_MIN_PIN      Y_DIAG_PIN
76
-    #define Y_MAX_PIN      57
76
+    #define Y_MAX_PIN      57   // Y+
77 77
   #else
78
-    #define Y_MIN_PIN      11
78
+    #define Y_MIN_PIN      11   // Y-
79 79
     #define Y_MAX_PIN      Y_DIAG_PIN
80 80
   #endif
81 81
 

正在加载...
取消
保存