From 0231511b3a056c7cfe7e28170f2485a9eef019c0 Mon Sep 17 00:00:00 2001
From: Arnaud Watlet <arnaud.watlet@umons.ac.be>
Date: Thu, 7 Dec 2023 12:51:15 +0100
Subject: [PATCH] Tries inject_current

---
 ohmpi/hardware_system.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ohmpi/hardware_system.py b/ohmpi/hardware_system.py
index c24d7685..129c6e9c 100644
--- a/ohmpi/hardware_system.py
+++ b/ohmpi/hardware_system.py
@@ -644,6 +644,7 @@ class OhmPiHardware:
         if self.tx.pwr.voltage_adjustable:
             if self.tx.voltage != vab:
                 self.tx.voltage = vab
+            if self.tx.current != 0.02:
                 self.tx.current = 0.02
         else:
             vab = self.tx.voltage
-- 
GitLab