Commit 90a529bf authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Implements switch_one in mux_2024

No related merge requests found
Showing with 1 addition and 2 deletions
+1 -2
...@@ -169,8 +169,7 @@ class Mux(MuxAbstract): ...@@ -169,8 +169,7 @@ class Mux(MuxAbstract):
pin_enable.value = state pin_enable.value = state
d = self.addresses[elec, role] d = self.addresses[elec, role]
self.exec_logger.debug(f'switching {state} electrode {elec} with role {role} on TCA {d["TCA_address"]}, channel ' self.exec_logger.debug(f'switching {state} electrode {elec} with role {role}')
f'{d["TCA_channel"]}, MCP {d["MCP_address"]}, gpio {d["MCP_GPIO"]}')
if state == 'on': if state == 'on':
set_relay_state(self._mcp[d['MCP']], d['MCP_GPIO'], True) set_relay_state(self._mcp[d['MCP']], d['MCP_GPIO'], True)
if state == 'off': if state == 'off':
......
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