From 665d446d6d485521feaa6d8ae45f28ee5f6dfe13 Mon Sep 17 00:00:00 2001
From: su530201 <olivier.kaufmann@umons.ac.be>
Date: Fri, 16 Jun 2023 17:47:11 +0200
Subject: [PATCH] Fix inj_time for auto_gain

---
 ohmpi/hardware_components/ohmpi_card_3_15.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ohmpi/hardware_components/ohmpi_card_3_15.py b/ohmpi/hardware_components/ohmpi_card_3_15.py
index f4aa3b08..fc7bf94a 100644
--- a/ohmpi/hardware_components/ohmpi_card_3_15.py
+++ b/ohmpi/hardware_components/ohmpi_card_3_15.py
@@ -149,7 +149,7 @@ class Tx(TxAbstract):
 
     def inject(self, polarity=1, inj_time=None):
         self.polarity = polarity
-        TxAbstract.inject(self, polarity=polarity, inj_time=None)
+        TxAbstract.inject(self, polarity=polarity, inj_time=inj_time)
 
     @property
     def polarity(self):
-- 
GitLab