diff --git a/CHANGELOG.md b/CHANGELOG.md index ab6f097..b88dce5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/). ## [Unreleased] +## [2022.8.2] + +### Fixed +- if the unpacker "ran ahead" of the serial buffer it would not succeed next time + ## [2022.8.1] ### Fixed @@ -15,6 +20,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/). ### Added - initial release -[Unreleased]: https://github.com/yaq-project/hart-protocol/compare/v2022.8.1...main +[Unreleased]: https://github.com/yaq-project/hart-protocol/compare/v2022.8.2...main +[2022.8.2]: https://github.com/yaq-project/hart-protocol/compare/v2022.8.1...v2022.8.2 [2022.8.1]: https://github.com/yaq-project/hart-protocol/compare/v2022.8.0...v2022.8.1 [2022.8.0]: https://gitlab.com/yaq/yaqd-picotech/tags/v2022.8.0 diff --git a/hart_protocol/VERSION b/hart_protocol/VERSION index 4daa46e..7183355 100644 --- a/hart_protocol/VERSION +++ b/hart_protocol/VERSION @@ -1 +1 @@ -2022.8.1 +2022.8.2 diff --git a/hart_protocol/_unpacker.py b/hart_protocol/_unpacker.py index d1801c3..49dd74e 100644 --- a/hart_protocol/_unpacker.py +++ b/hart_protocol/_unpacker.py @@ -57,7 +57,6 @@ def _read_one_byte_if_possible(self): raise StopIteration def __next__(self): - print("next", self.buf) # must work with at least two bytes to start with while len(self.buf) < 3: self.buf += self._read_one_byte_if_possible() @@ -95,7 +94,6 @@ def __next__(self): else: self.buf = self.buf[response_length + 3 :] # return - print(dict_) return namedtuple(dict_["command_name"], dict_.keys())(**dict_) def __aiter__(self):