Skip to content

Commit

Permalink
Bumping version and correcting typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mmouchous-ledger committed Mar 28, 2024
1 parent b312ac9 commit 322db2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pystages/cncrouter.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def get_current_status(self) -> Optional[Tuple[CNCStatus, dict]]:
status = self.receive()

# Retry, sometimes it does not respond
if status == b"":
if status == "":
self.send("?", eol="")
status = self.receive()

Expand Down Expand Up @@ -268,7 +268,7 @@ def receive(self) -> str:
if part == b"":
tries -= 1
if tries == 0:
return b""
return ""
# Remove CR-LF and return as string
return response[:-2].decode()

Expand Down

0 comments on commit 322db2f

Please sign in to comment.