From e9e0e7a467e6fd2e43346ba12fef494cff241c1c Mon Sep 17 00:00:00 2001 From: Jason2866 Date: Fri, 5 Nov 2021 12:47:32 +0100 Subject: [PATCH] remove c3 serial workaround --- tasmota/support.ino | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/tasmota/support.ino b/tasmota/support.ino index 4cc47ec2d..20274005c 100644 --- a/tasmota/support.ino +++ b/tasmota/support.ino @@ -1841,19 +1841,20 @@ int8_t ParseSerialConfig(const char *pstr) } -#if defined(ESP32) && CONFIG_IDF_TARGET_ESP32C3 +// workaround disabled 05.11.2021 solved with https://github.com/espressif/arduino-esp32/pull/5549 +//#if defined(ESP32) && CONFIG_IDF_TARGET_ESP32C3 // temporary workaround, see https://github.com/espressif/arduino-esp32/issues/5287 -#include -uint32_t GetSerialBaudrate(void) { - uint32_t br; - uart_get_baudrate(0, &br); - return (br / 300) * 300; // Fix ESP32 strange results like 115201 -} -#else +//#include +//uint32_t GetSerialBaudrate(void) { +// uint32_t br; +// uart_get_baudrate(0, &br); +// return (br / 300) * 300; // Fix ESP32 strange results like 115201 +//} +//#else uint32_t GetSerialBaudrate(void) { return (Serial.baudRate() / 300) * 300; // Fix ESP32 strange results like 115201 } -#endif +//#endif #ifdef ESP8266 void SetSerialSwap(void) {