Skip to content

Commit 322db2f

Browse files
Bumping version and correcting typo
1 parent b312ac9 commit 322db2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pystages/cncrouter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def get_current_status(self) -> Optional[Tuple[CNCStatus, dict]]:
181181
status = self.receive()
182182

183183
# Retry, sometimes it does not respond
184-
if status == b"":
184+
if status == "":
185185
self.send("?", eol="")
186186
status = self.receive()
187187

@@ -268,7 +268,7 @@ def receive(self) -> str:
268268
if part == b"":
269269
tries -= 1
270270
if tries == 0:
271-
return b""
271+
return ""
272272
# Remove CR-LF and return as string
273273
return response[:-2].decode()
274274

0 commit comments

Comments
 (0)