Skip to content

Commit

Permalink
v2022.8.2 (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
untzag authored Aug 30, 2022
1 parent 5758ddb commit 2d8d80a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion hart_protocol/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2022.8.1
2022.8.2
2 changes: 0 additions & 2 deletions hart_protocol/_unpacker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 2d8d80a

Please sign in to comment.