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
ae0a9efa
Commit
ae0a9efa
authored
May 08, 2018
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:py: bugfix fw version getter
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
b62b675f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
PyMockTurtle.py
software/lib/PyMockTurtle/PyMockTurtle/PyMockTurtle.py
+4
-3
No files found.
software/lib/PyMockTurtle/PyMockTurtle/PyMockTurtle.py
View file @
ae0a9efa
...
...
@@ -400,7 +400,7 @@ class TrtlCpu(object):
"""
It pings the firmware running on the CPU
:param idx_hmq: which HMQ to use for pinging
:param idx_hmq: which HMQ to use for pinging
(default: 0)
:type idx_hmq: int
:return: True if the firmware is alive, False otherwise
:rtype: bool
...
...
@@ -410,10 +410,11 @@ class TrtlCpu(object):
self
.
idx_cpu
,
idx_hmq
)
return
True
if
val
==
0
else
False
def
version
(
self
):
def
version
(
self
,
idx_hmq
=
0
):
"""
It pings the firmware running on the CPU.
:param idx_hmq: which HMQ to use for pinging (default: 0)
:type idx_hmq: int
:return: True if the firmware is alive, False otherwise
:raises OSError: from C library errors
"""
...
...
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