From 227577354419a278821b71caa1752b3ae34b0507 Mon Sep 17 00:00:00 2001
From: su530201 <olivier.kaufmann@umons.ac.be>
Date: Sat, 15 Apr 2023 20:25:00 +0200
Subject: [PATCH] Attemps to use the sampling_rate in _vab_pulse

---
 measure.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/measure.py b/measure.py
index 632b8a96..2f52185c 100644
--- a/measure.py
+++ b/measure.py
@@ -59,9 +59,9 @@ class OhmPiHardware:
 
     def _read_values(self, sampling_rate):  # noqa
         _readings = []
+        sample = 0
         self.tx_sync.wait()
         start_time = datetime.datetime.utcnow()
-        sample=0
         while self.tx_sync.is_set():
             lap = datetime.datetime.utcnow()
             _readings.append([elapsed_seconds(start_time), self.tx.current, self.rx.voltage])
-- 
GitLab