Commit 5ed44a98 authored by Arnaud WATLET's avatar Arnaud WATLET
Browse files

Adds jumper positions capability for mux_2024 config

Showing with 2 additions and 2 deletions
+2 -2
......@@ -142,6 +142,6 @@ class Mux(MuxAbstract):
def _mcp_jumper_pos_to_addr(self):
d = {'up': 0, 'down': 1}
mcp_0 = hex(int(f'0100{d[self._mcp_jumper_pos['addr2']]}{d[self._mcp_jumper_pos['addr1']]}0', 2))
mcp_1 = hex(int(f'0100{d[self._mcp_jumper_pos['addr2']]}{d[self._mcp_jumper_pos['addr1']]}1', 2))
mcp_0 = hex(int(f"0100{d[self._mcp_jumper_pos['addr2']]}{d[self._mcp_jumper_pos['addr1']]}0", 2))
mcp_1 = hex(int(f"0100{d[self._mcp_jumper_pos['addr2']]}{d[self._mcp_jumper_pos['addr1']]}1", 2))
self._mcp_addresses = {'mcp_0': mcp_0, 'mcp_1': mcp_1}
\ No newline at end of file
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