Browse Source

Pins should always be defined (even for disabled features)

Scott Lahteine 8 years ago
parent
commit
7f81aa7ff3
5 changed files with 7 additions and 19 deletions
  1. 1
    4
      Marlin/pins_A4JP.h
  2. 1
    3
      Marlin/pins_PRINTRBOARD.h
  3. 1
    3
      Marlin/pins_PRINTRBOARD_REVF.h
  4. 2
    4
      Marlin/pins_RAMBO.h
  5. 2
    5
      Marlin/pins_RAMPS_14.h

+ 1
- 4
Marlin/pins_A4JP.h View File

@@ -74,10 +74,7 @@
74 74
   #endif
75 75
 #endif // VIKI2/miniVIKI
76 76
 
77
-#if ENABLED(FILAMENT_SENSOR)
78
-  //Filip added pin for Filament sensor analog input
79
-  #define FILWIDTH_PIN        3
80
-#endif
77
+#define FILWIDTH_PIN        3  // ANALOG NUMBERING
81 78
 
82 79
 /************************************************
83 80
  * Rambo pin assignments old

+ 1
- 3
Marlin/pins_PRINTRBOARD.h View File

@@ -79,9 +79,7 @@
79 79
 #define TEMP_0_PIN          1  // Extruder / Analog pin numbering
80 80
 #define TEMP_BED_PIN        0  // Bed / Analog pin numbering
81 81
 
82
-#if ENABLED(FILAMENT_SENSOR)
83
-  #define FILWIDTH_PIN      2
84
-#endif
82
+#define FILWIDTH_PIN        2  // ANALOG NUMBERING
85 83
 
86 84
 #define TEMP_1_PIN         -1
87 85
 #define TEMP_2_PIN         -1

+ 1
- 3
Marlin/pins_PRINTRBOARD_REVF.h View File

@@ -73,9 +73,7 @@
73 73
 #define TEMP_0_PIN          1  // Extruder / Analog pin numbering
74 74
 #define TEMP_BED_PIN        0  // Bed / Analog pin numbering
75 75
 
76
-#if ENABLED(FILAMENT_SENSOR)
77
-  #define FILWIDTH_PIN      2
78
-#endif
76
+#define FILWIDTH_PIN        2  // ANALOG NUMBERING
79 77
 
80 78
 #define TEMP_1_PIN         -1
81 79
 #define TEMP_2_PIN         -1

+ 2
- 4
Marlin/pins_RAMBO.h View File

@@ -112,6 +112,8 @@
112 112
 #define LED_PIN            13
113 113
 #define FAN_PIN            8
114 114
 
115
+#define FILWIDTH_PIN        3  // ANALOG NUMBERING
116
+
115 117
 /**********************************************************
116 118
   Fan Pins
117 119
   Fan_0 8
@@ -201,7 +203,3 @@
201 203
   #endif
202 204
 #endif // VIKI2/miniVIKI
203 205
 
204
-#if ENABLED(FILAMENT_SENSOR)
205
-  //Filip added pin for Filament sensor analog input
206
-  #define FILWIDTH_PIN        3
207
-#endif

+ 2
- 5
Marlin/pins_RAMPS_14.h View File

@@ -91,11 +91,8 @@
91 91
 #define SDSS               53
92 92
 #define LED_PIN            13
93 93
 
94
-#if ENABLED(FILAMENT_SENSOR)  // FMM added for Filament Extruder
95
-  // define analog pin for the filament width sensor input
96
-  // Use the RAMPS 1.4 Analog input 5 on the AUX2 connector
97
-  #define FILWIDTH_PIN      5
98
-#endif
94
+// Use the RAMPS 1.4 Analog input 5 on the AUX2 connector
95
+#define FILWIDTH_PIN        5 // ANALOG NUMBERING
99 96
 
100 97
 #if ENABLED(Z_MIN_PROBE_ENDSTOP)
101 98
   // Define a pin to use as the signal pin on Arduino for the Z_PROBE endstop.

Loading…
Cancel
Save