Skip to content

Commit

Permalink
Print command and address in hex.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamshapiro0 committed Oct 29, 2024
1 parent 3d00602 commit b7110c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/fusion_engine_client/messages/sta5635.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""!
Expand Down

0 comments on commit b7110c2

Please sign in to comment.