We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8582dc commit fbf5e8dCopy full SHA for fbf5e8d
pyxcp/transport/sxi.py
@@ -109,7 +109,7 @@ def listen(self) -> None:
109
while True:
110
if self.closeEvent.is_set():
111
return
112
- if not self.comm_port.in_waiting():
+ if not self.comm_port.in_waiting:
113
continue
114
115
recv_timestamp = self.timestamp.value
@@ -129,5 +129,5 @@ def send(self, frame) -> None:
129
self.post_send_timestamp = self.timestamp.value
130
131
def close_connection(self) -> None:
132
- if hasattr(self, "comm_port") and self.comm_port.is_open() and not self.has_user_supplied_interface:
+ if hasattr(self, "comm_port") and self.comm_port.is_open and not self.has_user_supplied_interface:
133
self.comm_port.close()
0 commit comments