Fix float endianness issue on big endian architecture.
commit49af73debd756be68497a61bd53a07c02673da96
authorSZ Lin (林上智) <szlin@debian.org>
Thu, 20 Dec 2018 05:35:31 +0000 (20 13:35 +0800)
committerStéphane Raimbault <stephane.raimbault@gmail.com>
Mon, 21 Feb 2022 23:34:08 +0000 (22 00:34 +0100)
treeabffc9b58a11ba218f90e0348a78fc20281c2686
parent1a503b7f4ba5ac6c889c2206a48dfae355680de8
Fix float endianness issue on big endian architecture.

It converts float values depending on what order they come in.

This patch was modified from rm5248 [1]

[1] https://github.com/synexxus/libmodbus/commit/a511768e7fe7ec52d7bae1d9ae04e33f87a59627
src/modbus-data.c
tests/unit-test-client.c
tests/unit-test.h.in