From 45dde3a8c01eaefb9c7ce0a51536fa461b4d1cca Mon Sep 17 00:00:00 2001
From: Arnaud Watlet <arnaud.watlet@umons.ac.be>
Date: Tue, 23 Jan 2024 16:25:23 +0100
Subject: [PATCH] Merges v2024_rc

---
 ohmpi/hardware_system.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ohmpi/hardware_system.py b/ohmpi/hardware_system.py
index 7582fa5c..e13a97c0 100644
--- a/ohmpi/hardware_system.py
+++ b/ohmpi/hardware_system.py
@@ -153,7 +153,8 @@ class OhmPiHardware:
 
         if not self.tx.pwr.voltage_adjustable:
             self.tx._pwr_latency = 0
-        self.tx.polarity = 0
+        if self.tx.specs['connect']:
+            self.tx.polarity = 0
         self.tx.pwr._current_max = self.current_max
 
         # Initialize Muxes
-- 
GitLab