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:
authorDavid Crocker <dcrocker@eschertech.com>2022-09-19 20:36:51 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-09-23 15:45:44 +0300
commite73b4fbe803033d2fc6e9f3193ae2b5bb1c9e08b (patch)
tree8b6491fe734f86bbafb025679299358487cc62c6
parent618b88829bad5ffe780e8d681bcd8c60bd3f6f32 (diff)
Use correct baud rate to receive data from ESP32
-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;