Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Config/Pins.h4
-rw-r--r--src/Config/Pins_Duet3_MB6HC.h1
-rw-r--r--src/Networking/ESP8266WiFi/WiFiInterface.cpp2
3 files changed, 6 insertions, 1 deletions
diff --git a/src/Config/Pins.h b/src/Config/Pins.h
index 69d7f45d..7e34e13d 100644
--- a/src/Config/Pins.h
+++ b/src/Config/Pins.h
@@ -153,6 +153,10 @@
# define HAS_WIFI_NETWORKING 0
#endif
+#if HAS_WIFI_NETWORKING && !defined(WIFI_USES_ESP32)
+# define WIFI_USES_ESP32 0
+#endif
+
#ifndef HAS_W5500_NETWORKING
# define HAS_W5500_NETWORKING 0
#endif
diff --git a/src/Config/Pins_Duet3_MB6HC.h b/src/Config/Pins_Duet3_MB6HC.h
index 9d41ac77..ba4f363f 100644
--- a/src/Config/Pins_Duet3_MB6HC.h
+++ b/src/Config/Pins_Duet3_MB6HC.h
@@ -20,6 +20,7 @@ constexpr uint32_t IAP_IMAGE_START = 0x20458000; // last 32kb of RAM
// Networking support
#define HAS_LWIP_NETWORKING 1
#define HAS_WIFI_NETWORKING 1
+#define WIFI_USES_ESP32 1
// Storage support
#define HAS_SBC_INTERFACE 1
diff --git a/src/Networking/ESP8266WiFi/WiFiInterface.cpp b/src/Networking/ESP8266WiFi/WiFiInterface.cpp
index f54a52a9..ba4aec9a 100644
--- a/src/Networking/ESP8266WiFi/WiFiInterface.cpp
+++ b/src/Networking/ESP8266WiFi/WiFiInterface.cpp
@@ -2039,7 +2039,7 @@ void WiFiInterface::StartWiFi() noexcept
SetPinFunction(APIN_SerialWiFi_RXD, SerialWiFiPeriphMode); // connect the pins to the UART
#endif
-#if defined(DUET3_MB6HC)
+#if WIFI_USES_ESP32
SERIAL_WIFI_DEVICE.begin(WiFiBaudRate_ESP32); // initialise the UART, to receive debug info
#else
SERIAL_WIFI_DEVICE.begin(WiFiBaudRate); // initialise the UART, to receive debug info