From 9906723447aa3b0d715ede7ffeced0414a83c59c Mon Sep 17 00:00:00 2001 From: Stefan Wahren Date: Fri, 1 Apr 2016 18:19:32 +0000 Subject: [PATCH] Fix IEEE754 conversion It seems that the endianness handling was broken in ef6c4be655c ("Safer IEEE754 conversion."). So drop it. --- mbus/mbus-protocol.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mbus/mbus-protocol.c b/mbus/mbus-protocol.c index 107e73a..b824ce4 100755 --- a/mbus/mbus-protocol.c +++ b/mbus/mbus-protocol.c @@ -12,7 +12,6 @@ #include #include #include -#include #include "mbus-protocol.h" @@ -691,7 +690,6 @@ mbus_data_float_decode(unsigned char *float_data) float f; } data; memcpy(&(data.u32), float_data, sizeof(uint32_t)); - data.u32 = ntohl(data.u32); return data.f; } #endif