From f863fc8005ee5f8119167febb46b491b3a02c523 Mon Sep 17 00:00:00 2001
From: Malaurie Bernard <mbernard@kinouby>
Date: Wed, 6 Sep 2023 11:44:03 +0200
Subject: [PATCH] Changing place of a button to choose to work with throughput
 or duration

---
 web.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/web.cpp b/web.cpp
index bc609bc..3fbd959 100644
--- a/web.cpp
+++ b/web.cpp
@@ -77,10 +77,12 @@ void Web :: web_setup()
     volume_exchange_mL = ESPUI.addControl(ControlType::Number,"Configuration de l'échange", "0", ControlColor::None, initial_volume_mL_label, [&](Control* sender, int value){volume_exchange_mL_callback(sender, value);});
     number_max_min(0, 500, volume_exchange_mL);
 
-    exchange_throughtput_uL_per_min_or_duration_sec_label = ESPUI.addControl(ControlType::Label, "Configuration de l'échange", "Débit de l'échange en uL/sec", ControlColor::None, initial_volume_mL_label);
+    exchange_throughtput_uL_per_min_or_duration_sec_label = ESPUI.addControl(ControlType::Label, "Configuration de l'échange", "Débit de l'échange en uL/min", ControlColor::None, initial_volume_mL_label);
+
+    throughput_or_duration = ESPUI.addControl(ControlType::Button, "Configuration de l'échange", "\u21C6", ControlColor::None, initial_volume_mL_label, [&](Control* sender, int value){throughput_or_duration_callback(sender, value);});
+
     exchange_throughtput_uL_per_min_or_duration_sec = ESPUI.addControl(ControlType::Number,"Configuration de l'échange", "0", ControlColor::None, initial_volume_mL_label, [&](Control* sender, int value){exchange_throughtput_uL_per_min_or_duration_sec_callback(sender, value);});
     number_max_min(0, 500, exchange_throughtput_uL_per_min_or_duration_sec);
-    throughput_or_duration = ESPUI.addControl(ControlType::Button, "Configuration de l'échange", "\u21C6", ControlColor::None, initial_volume_mL_label, [&](Control* sender, int value){throughput_or_duration_callback(sender, value);});
 
     label_push_pull_choice = ESPUI.addControl(ControlType::Label, "Injection ou Aspiration", "Injection", ControlColor::None, initial_volume_mL_label);
     switch_push_pull_choice = ESPUI.addControl(ControlType::Switcher, "Injection ou Aspiration", "Injection", ControlColor::None, initial_volume_mL_label, [&](Control* sender, int value){switch_push_pull_choice_callback(sender, value);});
-- 
GitLab