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

Fix float32 encoding/decoding (#665, #694, #757) #770

Closed
wants to merge 1 commit into from

Conversation

ghorwin
Copy link
Contributor

@ghorwin ghorwin commented Sep 19, 2024

The commit reverts the problematic patch "Fix float endianness issue on big endian architecture." (but keeps the good parts of it).

This reverts commit 49af73d.

The test suite is updated to use correct processor-endianess when defining comparison values. Then, the getter functions and setter functions are aligned to be consistent regarding the memory layout.

Documentation about the memory layout in modbus_mapping_t has been added (see #757).

Code has been tested against Modbus poll and with mbpoll using an old version of libmodus (3.1.8) prior to the faulty commit.

…ix test suite and setter functions.

This reverts commit 49af73d.
@stephane
Copy link
Owner

Code merged (d0cb19a).
@ghorwin Thank you for your great work.

@stephane stephane closed this Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants