diff options
author | David Crocker <dcrocker@eschertech.com> | 2022-09-19 20:36:51 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2022-09-23 15:45:44 +0300 |
commit | e73b4fbe803033d2fc6e9f3193ae2b5bb1c9e08b (patch) | |
tree | 8b6491fe734f86bbafb025679299358487cc62c6 | |
parent | 618b88829bad5ffe780e8d681bcd8c60bd3f6f32 (diff) |
Use correct baud rate to receive data from ESP32
-rw-r--r-- | src/Networking/ESP8266WiFi/WiFiInterface.cpp | 9 |
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; |