Commit 46d3a362 authored by Arnaud WATLET's avatar Arnaud WATLET
Browse files

implements test modbus

Showing with 8 additions and 1 deletion
+8 -1
......@@ -455,9 +455,16 @@ def test_mux_connection(hw_nc, test_logger, mux_id=None):
def test_pwr_connection(hw_nc, test_logger):
tx = hw_nc.tx
pwr = hw_nc.pwr
if tx.pwr.voltage_adjustable:
try:
pass
if pwr.specs['interface_name'] == 'modbus':
pwr.specs['ctl'].reset_modbus()
except:
traceback.print_exc()
test_logger(colored(
f"{module_name}: Connection NOT established with {device} with address {hex(module.specs[f'{device}_address'])}.",
"red"))
except:
traceback.print_exc()
else:
......
Supports Markdown
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