From 174b4b6610ff49827d6afc06b02978d46b7cb624 Mon Sep 17 00:00:00 2001
From: awatlet <arnaud.watlet@umons.ac.be>
Date: Thu, 12 Oct 2023 09:03:28 +0200
Subject: [PATCH] Adds jumper positions capability for mux_2024 config

---
 ohmpi/hardware_components/mux_2024_0_X.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ohmpi/hardware_components/mux_2024_0_X.py b/ohmpi/hardware_components/mux_2024_0_X.py
index 923ea829..a865b372 100644
--- a/ohmpi/hardware_components/mux_2024_0_X.py
+++ b/ohmpi/hardware_components/mux_2024_0_X.py
@@ -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 = int(f"0100{d[self._mcp_jumper_pos['addr2']]}{d[self._mcp_jumper_pos['addr1']]}0", 2)
+        mcp_1 = int(f"0100{d[self._mcp_jumper_pos['addr2']]}{d[self._mcp_jumper_pos['addr1']]}1", 2)
         self._mcp_addresses = (mcp_0, mcp_1)
\ No newline at end of file
-- 
GitLab