Skip to content

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.

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