From f6d3a1a13446a31803617611cffdc6ce30e041f6 Mon Sep 17 00:00:00 2001
From: su530201 <olivier.kaufmann@umons.ac.be>
Date: Tue, 10 Oct 2023 16:37:37 +0200
Subject: [PATCH] Tries to implement VMN sign within mb_2023 and mb_2024

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

diff --git a/ohmpi/hardware_components/mb_2024_0_2.py b/ohmpi/hardware_components/mb_2024_0_2.py
index 9bb65d72..5a5b6b48 100644
--- a/ohmpi/hardware_components/mb_2024_0_2.py
+++ b/ohmpi/hardware_components/mb_2024_0_2.py
@@ -143,4 +143,5 @@ class Rx(Rx_mb_2023):
         self.exec_logger.event(f'{self.board_name}\trx_voltage\tbegin\t{datetime.datetime.utcnow()}')
         u = (AnalogIn(self._ads_voltage, ads.P0).voltage * self._coef_p2 * 1000. - self._vmn_hardware_offset) / self._dg411_gain - self._bias  # TODO: check how to handle bias and _vmn_hardware_offset
         self.exec_logger.event(f'{self.board_name}\trx_voltage\tend\t{datetime.datetime.utcnow()}')
+        print(f'voltage: {u}')
         return u
-- 
GitLab