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
Prev Previous commit
Next Next commit
Update pymodbus/client/sync.py
Co-Authored-By: mpf82 <[email protected]>
  • Loading branch information
dhoomakethu and mpf82 authored Dec 3, 2018
commit 3cd8cc86a967912ee6baad39eec0f4fa33a46923
2 changes: 1 addition & 1 deletion pymodbus/client/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def connect(self):
_logger.error(msg)
self.close()
if self.method == "rtu":
if(self.socket):
if self.socket:
self.socket.interCharTimeout = self.inter_char_timeout
self.last_frame_end = None
return self.socket is not None
Expand Down