From a5db1441442a99b06180cd2e168d192bce084042 Mon Sep 17 00:00:00 2001 From: Shantur Rathore Date: Wed, 29 May 2024 23:33:26 +0100 Subject: [PATCH] xdrv: tcp_bridge: On ESP32 TCP Serial bridge can support baudrate of more than 115200. After this change the baudrate is still limited to 306000 due to uint_8 is used for settings->tcp_baudrate. A 1.5Mbauds have been tested by changing uint_16 for settings->tcp_baudrate on ESP32 --- tasmota/tasmota_xdrv_driver/xdrv_41_tcp_bridge.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_41_tcp_bridge.ino b/tasmota/tasmota_xdrv_driver/xdrv_41_tcp_bridge.ino index b77480f09597..3190946f073f 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_41_tcp_bridge.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_41_tcp_bridge.ino @@ -212,7 +212,7 @@ void CmndTCPStart(void) { } void CmndTCPBaudrate(void) { - if ((XdrvMailbox.payload >= 1200) && (XdrvMailbox.payload <= 115200)) { + if ((XdrvMailbox.payload >= 1200)) { XdrvMailbox.payload /= 1200; // Make it a valid baudrate if (Settings->tcp_baudrate != XdrvMailbox.payload) { Settings->tcp_baudrate = XdrvMailbox.payload;