Skip to content

Commit fbf5e8d

Browse files
committed
Fix serial port properties
1 parent f8582dc commit fbf5e8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyxcp/transport/sxi.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def listen(self) -> None:
109109
while True:
110110
if self.closeEvent.is_set():
111111
return
112-
if not self.comm_port.in_waiting():
112+
if not self.comm_port.in_waiting:
113113
continue
114114

115115
recv_timestamp = self.timestamp.value
@@ -129,5 +129,5 @@ def send(self, frame) -> None:
129129
self.post_send_timestamp = self.timestamp.value
130130

131131
def close_connection(self) -> None:
132-
if hasattr(self, "comm_port") and self.comm_port.is_open() and not self.has_user_supplied_interface:
132+
if hasattr(self, "comm_port") and self.comm_port.is_open and not self.has_user_supplied_interface:
133133
self.comm_port.close()

0 commit comments

Comments
 (0)