Merge pull request #16092 from jeroenst/ModbusBridgeTcp

Modbus bridge didn't begin at boot
This commit is contained in:
Theo Arends 2022-07-26 21:43:09 +02:00 committed by GitHub
commit b82e93c193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ void ModbusBridgeInit(void)
if (PinUsed(GPIO_MBR_RX) && PinUsed(GPIO_MBR_TX))
{
tasmotaModbus = new TasmotaModbus(Pin(GPIO_MBR_RX), Pin(GPIO_MBR_TX));
ModbusBridgeBegin();
#ifdef USE_MODBUS_BRIDGE_TCP
// If TCP bridge is enabled allocate a TCP receive buffer
modbusBridgeTCP.tcp_buf = (uint8_t *)malloc(MODBUS_BRIDGE_TCP_BUF_SIZE);