Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pymodbus/client/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,8 @@ def connect(self):
_logger.error(msg)
self.close()
if self.method == "rtu":
self.socket.interCharTimeout = self.inter_char_timeout
if(self.socket):
self.socket.interCharTimeout = self.inter_char_timeout
self.last_frame_end = None
return self.socket is not None

Expand Down