Commit ae0a9efa authored by Federico Vaga's avatar Federico Vaga

sw:py: bugfix fw version getter

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent b62b675f
......@@ -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
"""
......
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