Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Mock Turtle
Commits
4b3f1d5f
Commit
4b3f1d5f
authored
May 08, 2018
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:py: add FW version comparison
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
b0285278
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
PyMockTurtle.py
software/lib/PyMockTurtle/PyMockTurtle/PyMockTurtle.py
+9
-0
No files found.
software/lib/PyMockTurtle/PyMockTurtle/PyMockTurtle.py
View file @
4b3f1d5f
...
...
@@ -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
):
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment