Skip to content

Commit

Permalink
modify message of ping_BBB() in wiregrid_encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
sadachi5 committed Nov 8, 2023
1 parent 31ebdca commit 823d124
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions socs/agents/wiregrid_encoder/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,11 +353,11 @@ def ping_BBB(self, session, params=None):

ret = ping(self.ip)
if ret:
return True, 'Successfully ping to the BBB.'
return True, f'Successfully ping to the BBB({self.ip}).'
elif ret is None:
return False, 'Failed to ping to the BBB (No response).'
return False, f'Failed to ping to the BBB({self.ip}). No response.'
else:
return False, 'Failed to ping to the BBB (Unknown host).'
return False, f'Failed to ping to the BBB({self.ip}). Unknown host.'


def make_parser(parser=None):
Expand All @@ -369,7 +369,7 @@ def make_parser(parser=None):
type=int, default=50007,
help='Port of the beaglebone '
'running wiregrid encoder DAQ')
pgroup.add_argument('--ip', dest='ip',
pgroup.add_argument('--ip-address', dest='ip_address',
type=str, default='192.168.11.29',
help='IP address of the beaglebone '
'running wiregrid encoder DAQ')
Expand All @@ -385,7 +385,7 @@ def main(args=None):
agent, runner = ocs_agent.init_site_agent(args)

wg_encoder_agent = WiregridEncoderAgent(
agent, bbport=args.port, bbip=args.ip)
agent, bbport=args.port, bbip=args.ip_address)

agent.register_process('acq',
wg_encoder_agent.acq,
Expand Down

0 comments on commit 823d124

Please sign in to comment.