Skip to content

Commit 8c62835

Browse files
committed
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
2 parents a8c7c36 + b7386a0 commit 8c62835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

freemodbus/tcp_slave/port/port_tcp_slave.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
#if MB_TCP_ENABLED
6161

6262
/* ----------------------- Defines -----------------------------------------*/
63-
#define MB_TCP_DISCONNECT_TIMEOUT ( CONFIG_FMB_TCP_CONNECTION_TOUT_SEC * 1000000 ) // disconnect timeout in uS
63+
#define MB_TCP_DISCONNECT_TIMEOUT ( CONFIG_FMB_TCP_CONNECTION_TOUT_SEC * 1000000UL ) // disconnect timeout in uS
6464
#define MB_TCP_RESP_TIMEOUT_MS ( MB_MASTER_TIMEOUT_MS_RESPOND - 1 ) // slave response time limit
6565
#define MB_TCP_NET_LISTEN_BACKLOG ( SOMAXCONN )
6666

0 commit comments

Comments
 (0)