Browse Source

🔧 Clean up unused ESP_WIFI pins

Scott Lahteine 1 year ago
parent
commit
fd0c6fa153
1 changed files with 15 additions and 0 deletions
  1. 15
    0
      Marlin/src/inc/Conditionals_post.h

+ 15
- 0
Marlin/src/inc/Conditionals_post.h View File

@@ -2543,6 +2543,21 @@
2543 2543
 #undef TMC_UART_IS
2544 2544
 #undef ANY_SERIAL_IS
2545 2545
 
2546
+// Clean up unused ESP_WIFI pins
2547
+#ifdef ESP_WIFI_MODULE_COM
2548
+  #if !SERIAL_IN_USE(ESP_WIFI_MODULE_COM)
2549
+    #undef ESP_WIFI_MODULE_COM
2550
+    #undef ESP_WIFI_MODULE_BAUDRATE
2551
+    #undef ESP_WIFI_MODULE_RESET_PIN
2552
+    #undef ESP_WIFI_MODULE_ENABLE_PIN
2553
+    #undef ESP_WIFI_MODULE_TXD_PIN
2554
+    #undef ESP_WIFI_MODULE_RXD_PIN
2555
+    #undef ESP_WIFI_MODULE_GPIO0_PIN
2556
+    #undef ESP_WIFI_MODULE_GPIO2_PIN
2557
+    #undef ESP_WIFI_MODULE_GPIO4_PIN
2558
+  #endif
2559
+#endif
2560
+
2546 2561
 //
2547 2562
 // Endstops and bed probe
2548 2563
 //

Loading…
Cancel
Save