diff --git a/python/fusion_engine_client/messages/sta5635.py b/python/fusion_engine_client/messages/sta5635.py index 05a3ff4b..421575c3 100644 --- a/python/fusion_engine_client/messages/sta5635.py +++ b/python/fusion_engine_client/messages/sta5635.py @@ -41,6 +41,12 @@ def __repr__(self): result += f', command=0x{self.command:02X}, address=0x{self.address:02X}, data={self.data}]' return result + def __str__(self): + return construct_message_to_string(message=self, value_to_string={ + 'command': lambda x: f'0x{x:02X}', + 'address': lambda x: f'0x{x:02X}', + }) + class STA5635CommandResponse(MessagePayload): """!