From 2a3852e8927a9a94520d7ff85f9c7acac1483c3c Mon Sep 17 00:00:00 2001
From: guigur <guigur13@gmail.com>
Date: Mon, 9 May 2022 14:54:09 +0200
Subject: [PATCH] max 30

---
 web.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/web.cpp b/web.cpp
index 1d326a7..156179a 100644
--- a/web.cpp
+++ b/web.cpp
@@ -100,8 +100,9 @@ void webSetup ()
     millisLabelId = ESPUI.addControl(ControlType::Label, "Millis:", "0", ControlColor::Emerald, Control::noParent);
     switchOne = ESPUI.addControl(ControlType::Switcher, "Switch one", "", ControlColor::Alizarin, Control::noParent, &switchExample);
     
-    ESPUI.addControl(ControlType::Slider, "Select a constant flow", "30mL/s", ControlColor::Alizarin, Control::noParent, &slider);
-    ESPUI.addControl(ControlType::Slider, "Select a given volume", "30mL", ControlColor::Alizarin, Control::noParent, &slider);
+    uint16_t constantFlow = ESPUI.addControl(ControlType::Slider, "Select a constant flow", "30mL/s", ControlColor::Alizarin, Control::noParent, &slider);
+    ESPUI.addControl(ControlType::Max, "", "30", ControlColor::None, constantFlow);
+    
     ESPUI.addControl(ControlType::Slider, "Select a seringe displacement distance", "100mm", ControlColor::Alizarin, Control::noParent, &slider);
     ESPUI.addControl(ControlType::Slider, "Select a seringe displacement time", "100s", ControlColor::Alizarin, Control::noParent, &slider);
 
-- 
GitLab