diff --git a/libgreat/host/pygreat/board.py b/libgreat/host/pygreat/board.py index 1a74fb51..97481d2d 100644 --- a/libgreat/host/pygreat/board.py +++ b/libgreat/host/pygreat/board.py @@ -380,11 +380,6 @@ def dmesg(self, max_length=4096, clear=False, encoding='latin1'): def _to_hex_string(byte_array): """Convert a byte array to a hex string.""" - # Python2 compatibility - try: - byte_array = future.builtins.bytes(byte_array) - except ValueError: - byte_array = list(byte_array) hex_generator = ('{:02x}'.format(x) for x in byte_array) return ''.join(hex_generator) diff --git a/libgreat/host/pygreat/classes/core.py b/libgreat/host/pygreat/classes/core.py index 9cec88f4..d39997da 100644 --- a/libgreat/host/pygreat/classes/core.py +++ b/libgreat/host/pygreat/classes/core.py @@ -33,7 +33,7 @@ class CoreAPI(CommsClass): name="read_version_string", out_parameter_names=["version"], doc="Fetches the board's version.") # RPC that reads the part ID - read_part_id = command_rpc(verb_number=0x2, out_format="<8s", name="read_part_id", out_parameter_names=["part_id"]) + read_part_id = command_rpc(verb_number=0x2, out_format="<2I", name="read_part_id", out_parameter_names=["part_id"]) read_part_id.__doc__ = \ """Fetches the part ID used on the board.