Skip to content

Instantly share code, notes, and snippets.

@lategoodbye
Created March 31, 2016 17:58
Show Gist options
  • Save lategoodbye/5782f4003a13cee0fb5320390372b168 to your computer and use it in GitHub Desktop.
Save lategoodbye/5782f4003a13cee0fb5320390372b168 to your computer and use it in GitHub Desktop.
diff --git a/mbus/mbus-protocol.c b/mbus/mbus-protocol.c
index 107e73a..0deca63 100755
--- a/mbus/mbus-protocol.c
+++ b/mbus/mbus-protocol.c
@@ -691,7 +691,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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment