Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix for #1661 #1664

Merged
merged 2 commits into from
Jul 18, 2023
Merged

Conversation

fhydralisk
Copy link
Contributor

No description provided.

Copy link
Collaborator

@janiversen janiversen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@@ -781,5 +781,5 @@ def build_value_from_registers(cls, registers, is_int):
if is_int:
value = int.from_bytes(value_bytes, "big")
else:
value = struct.unpack("f", value_bytes)[0]
value = struct.unpack(">f", value_bytes)[0]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch !!, funny thing is that I am on a M1 MacMini and did not see it.

@janiversen janiversen merged commit 6f85486 into pymodbus-dev:dev Jul 18, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants