Merge branch 'bugfix/fix_disconnect_timeout_handling_v1' into 'master'

slave fix incorrect disconnect timeout handling v1

Closes IDFGH-14951

See merge request idf/esp-modbus!116
This commit is contained in:
Alex Lisitsyn
2025-04-26 00:42:26 +08:00

View File

@ -60,7 +60,7 @@
#if MB_TCP_ENABLED
/* ----------------------- Defines -----------------------------------------*/
#define MB_TCP_DISCONNECT_TIMEOUT ( CONFIG_FMB_TCP_CONNECTION_TOUT_SEC * 1000000 ) // disconnect timeout in uS
#define MB_TCP_DISCONNECT_TIMEOUT ( CONFIG_FMB_TCP_CONNECTION_TOUT_SEC * 1000000UL ) // disconnect timeout in uS
#define MB_TCP_RESP_TIMEOUT_MS ( MB_MASTER_TIMEOUT_MS_RESPOND - 1 ) // slave response time limit
#define MB_TCP_NET_LISTEN_BACKLOG ( SOMAXCONN )