Skip to content
Snippets Groups Projects
Commit 15613e45 authored by Daniele Nicolodi's avatar Daniele Nicolodi
Browse files

meerstetterTEC: Fix serialization of float values

parent fb52346c
Branches
Tags v0.12.0
No related merge requests found
......@@ -67,9 +67,9 @@ class float32:
@staticmethod
def dumps(value):
return binascii.hexlify(strucp.pack('!f', value))
return binascii.hexlify(struct.pack('!f', value)).upper()
class MeCom:
"""Meerstetter Engineering MeCom Protocol implementation."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment