From 515cddb74959db620c17bd722f9bc80367e04f62 Mon Sep 17 00:00:00 2001
From: su530201 <olivier.kaufmann@umons.ac.be>
Date: Sat, 15 Apr 2023 13:20:01 +0200
Subject: [PATCH] Fixes rx voltage units error in message (changing from V to
 mV)

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

diff --git a/hardware/ohmpi_card_3_15.py b/hardware/ohmpi_card_3_15.py
index eb5a0343..f5fc89be 100644
--- a/hardware/ohmpi_card_3_15.py
+++ b/hardware/ohmpi_card_3_15.py
@@ -234,5 +234,5 @@ class Rx(RxAbstract):
         u0 = AnalogIn(self._ads_voltage, ads.P0).voltage * 1000.
         u2 = AnalogIn(self._ads_voltage, ads.P2).voltage * 1000.
         u = np.max([u0,u2]) * (np.heaviside(u0-u2, 1.) * 2 - 1.) # gets the max between u0 & u2 and set the sign
-        self.exec_logger.debug(f'Reading voltages {u0} V and {u2} V on RX. Returning {u} V')
+        self.exec_logger.debug(f'Reading voltages {u0} mV and {u2} mV on RX. Returning {u} mV')
         return u
\ No newline at end of file
-- 
GitLab