Browse Source

🎨 Fix redefine warnings (#23061)

Robby Candra 3 years ago
parent
commit
4989379674
No account linked to committer's email address
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      Marlin/src/pins/pins_postprocess.h

+ 6
- 6
Marlin/src/pins/pins_postprocess.h View File

1260
 // Disable unused endstop / probe pins
1260
 // Disable unused endstop / probe pins
1261
 //
1261
 //
1262
 #define _STOP_IN_USE(N) (X2_USE_ENDSTOP == N || Y2_USE_ENDSTOP == N || Z2_USE_ENDSTOP == N || Z3_USE_ENDSTOP == N || Z4_USE_ENDSTOP == N)
1262
 #define _STOP_IN_USE(N) (X2_USE_ENDSTOP == N || Y2_USE_ENDSTOP == N || Z2_USE_ENDSTOP == N || Z3_USE_ENDSTOP == N || Z4_USE_ENDSTOP == N)
1263
-#if _STOP_IN_USE(_XMAX_)
1263
+#if !defined(USE_XMAX_PLUG) && _STOP_IN_USE(_XMAX_)
1264
   #define USE_XMAX_PLUG
1264
   #define USE_XMAX_PLUG
1265
 #endif
1265
 #endif
1266
-#if _STOP_IN_USE(_YMAX_)
1266
+#if !defined(USE_YMAX_PLUG) && _STOP_IN_USE(_YMAX_)
1267
   #define USE_YMAX_PLUG
1267
   #define USE_YMAX_PLUG
1268
 #endif
1268
 #endif
1269
-#if _STOP_IN_USE(_ZMAX_)
1269
+#if !defined(USE_ZMAX_PLUG) && _STOP_IN_USE(_ZMAX_)
1270
   #define USE_ZMAX_PLUG
1270
   #define USE_ZMAX_PLUG
1271
 #endif
1271
 #endif
1272
-#if _STOP_IN_USE(_XMIN_)
1272
+#if !defined(USE_XMIN_PLUG) && _STOP_IN_USE(_XMIN_)
1273
   #define USE_XMIN_PLUG
1273
   #define USE_XMIN_PLUG
1274
 #endif
1274
 #endif
1275
-#if _STOP_IN_USE(_YMIN_)
1275
+#if !defined(USE_YMIN_PLUG) && _STOP_IN_USE(_YMIN_)
1276
   #define USE_YMIN_PLUG
1276
   #define USE_YMIN_PLUG
1277
 #endif
1277
 #endif
1278
-#if _STOP_IN_USE(_ZMIN_)
1278
+#if !defined(USE_ZMIN_PLUG) && _STOP_IN_USE(_ZMIN_)
1279
   #define USE_ZMIN_PLUG
1279
   #define USE_ZMIN_PLUG
1280
 #endif
1280
 #endif
1281
 #undef _STOP_IN_USE
1281
 #undef _STOP_IN_USE

Loading…
Cancel
Save