Skip to content

Commit

Permalink
v0.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
dudanov committed Jun 4, 2024
1 parent 4f68ffd commit b9ed7b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions pyftms/serializer/num.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ def __init__(self, format: str) -> None:
self.size, self.factor, self.sign = _parse_fmt(format)

def _none(self) -> int:
result = 256 * self.size - 1

return result // 2 if self.sign else result
return (128 if self.sign else 256) * self.size - 1

@override
def _deserialize(self, src: io.IOBase) -> SupportedNumbers:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pyftms"
version = "0.2.6"
version = "0.2.7"
description = "PyFTMS - Python Fitness Machine Service client library."
authors = ["Sergey V. DUDANOV <sergey.dudanov@gmail.com>"]
readme = "README.md"
Expand Down

0 comments on commit b9ed7b4

Please sign in to comment.