From 7450ed2a8774289497c5a5d6c73d158c89fc7a05 Mon Sep 17 00:00:00 2001 From: Michael Mouchous Date: Thu, 28 Mar 2024 19:22:53 +0100 Subject: [PATCH] Bumping version and correcting typo --- pyproject.toml | 2 +- pystages/cncrouter.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 89a1dab..e90e130 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "pystages" -version = "1.1.1" +version = "1.1.1b" authors = [ { name="Olivier Hérivaux", email="olivier.heriveaux@ledger.fr" }, { name="Michaël Mouchous", email="michael.mouchous@ledger.fr" }, diff --git a/pystages/cncrouter.py b/pystages/cncrouter.py index 40ecab1..12c046d 100644 --- a/pystages/cncrouter.py +++ b/pystages/cncrouter.py @@ -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() @@ -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()