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/Networking/ESP8266WiFi/WiFiInterface.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Networking/ESP8266WiFi/WiFiInterface.cpp b/src/Networking/ESP8266WiFi/WiFiInterface.cpp
index 22ae7a52..f54a52a9 100644
--- a/src/Networking/ESP8266WiFi/WiFiInterface.cpp
+++ b/src/Networking/ESP8266WiFi/WiFiInterface.cpp
@@ -2035,10 +2035,15 @@ void WiFiInterface::StartWiFi() noexcept
#endif
#if !SAME5x && !defined(__LPC17xx__)
- SetPinFunction(APIN_SerialWiFi_TXD, SerialWiFiPeriphMode); // connect the pins to the UART
- SetPinFunction(APIN_SerialWiFi_RXD, SerialWiFiPeriphMode); // connect the pins to the UART
+ SetPinFunction(APIN_SerialWiFi_TXD, SerialWiFiPeriphMode); // connect the pins to the UART
+ SetPinFunction(APIN_SerialWiFi_RXD, SerialWiFiPeriphMode); // connect the pins to the UART
#endif
+
+#if defined(DUET3_MB6HC)
+ 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
+#endif
debugMessageChars = 0;
serialRunning = true;
debugPrintPending = false;