From 5e8739efb4f61140f13266cea6ce0c66f4fa71de Mon Sep 17 00:00:00 2001
From: Guillaume <sagitta1618@gmail.com>
Date: Mon, 11 Nov 2024 00:17:40 +0100
Subject: [PATCH] Correct vmn_req unit from mV to V (also in webgui)

---
 index.html     | 2 +-
 ohmpi/ohmpi.py | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/index.html b/index.html
index 69dbbaa4..eadfdbc2 100755
--- a/index.html
+++ b/index.html
@@ -568,7 +568,7 @@ mosquitto_sub -h raspberrypi.local -t ohmpi_0001/ctrl
                         </div>
                       </div>
                       <div class="form-group row">
-                        <label for="vmn_req" class="col col-form-label">Vmn requested [mV] (<code>vmn_req</code>):</label>
+                        <label for="vmn_req" class="col col-form-label">Vmn requested [V] (<code>vmn_req</code>):</label>
                         <div class="col">
                           <input type="number" class="form-control-number" id="vmn_req" value="20" disabled>
                         </div>
diff --git a/ohmpi/ohmpi.py b/ohmpi/ohmpi.py
index aaf6b824..fe53c249 100644
--- a/ohmpi/ohmpi.py
+++ b/ohmpi/ohmpi.py
@@ -748,13 +748,13 @@ class OhmPi(object):
             Maximum power allowed [W].
             Default value set by config or boards specs
         vmn_min: float, optional
-            Minimum Vmn [mV] (used in strategy vmin).
+            Minimum Vmn [V] (used in strategy vmin).
             Default value set by config or boards specs
         vmn_req: float, optional
-            Requested Vmn [mV] (used in strategy vmin).
+            Requested Vmn [V] (used in strategy vmin).
             Default value set by config or boards specs
         vmn_max: float, optional
-            Maximum Vmn [mV] (used in strategy vmin).
+            Maximum Vmn [V] (used in strategy vmin).
             Default value set by config or boards specs
         min_agg : bool, optional, default: False
             when set to True, requested values are aggregated with the 'or' operator, when False with the 'and' operator
-- 
GitLab