Index: dialin/utils/conversions.py =================================================================== diff -u -rd9b45e5b52db2540a79cbc8795d82dda4fd3984b -rfcfc61f262717645f85479ebec4f474c08dbbfa3 --- dialin/utils/conversions.py (.../conversions.py) (revision d9b45e5b52db2540a79cbc8795d82dda4fd3984b) +++ dialin/utils/conversions.py (.../conversions.py) (revision fcfc61f262717645f85479ebec4f474c08dbbfa3) @@ -188,7 +188,7 @@ or four(4) bytes otherwise. @return: pair of the [value and incremented index by the length. """ - length = 4 if is_double else 8 - value = bytearray_to_value("f" if is_double else "d", buffer[index:index + length]) + length = 8 if is_double else 4 + value = bytearray_to_value("d" if is_double else "f", buffer[index:index + length]) return value, index + length