Commit 4b3f1d5f authored by Federico Vaga's avatar Federico Vaga

sw:py: add FW version comparison

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent b0285278
......@@ -151,6 +151,15 @@ class TrtlFirmwareVersion(Structure):
("git_version", c_uint32),
]
def __eq__(self, other):
if self.fw_id != other.fw_id:
return False
if self.fw_version != other.fw_version:
return False
if self.git_version != other.git_version:
return False
return True
class TrtlDevice(object):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment