From c73f2f7d765c7fb2020590bd9b37dadd45722004 Mon Sep 17 00:00:00 2001
From: Malaurie Bernard <mbernard@kinouby>
Date: Thu, 20 Jul 2023 10:44:41 +0200
Subject: [PATCH] Adding a few variable

---
 web.cpp | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/web.cpp b/web.cpp
index 1efa279..8ffd07f 100644
--- a/web.cpp
+++ b/web.cpp
@@ -5,12 +5,13 @@
 void web_setup ()
 {
    
+    //HeapSelectIram abc;
     set_theme(1);
 
     //Create tabs
-    uint16_t configurations = ESPUI.addControl(ControlType::Tab, "Configurations", "Configurations");
-    uint16_t new_syringe = ESPUI.addControl(ControlType::Tab, "Nouvelle Seringue", "Nouvelle seringue");
-    uint16_t features = ESPUI.addControl(ControlType::Tab, "Caracteristiques du pousse-seringue", "Caracteristiques du pousse-seringue");
+    configurations = ESPUI.addControl(ControlType::Tab, "Configurations", "Configurations");
+    new_syringe = ESPUI.addControl(ControlType::Tab, "Nouvelle Seringue", "Nouvelle seringue");
+    features = ESPUI.addControl(ControlType::Tab, "Caracteristiques du pousse-seringue", "Caracteristiques du pousse-seringue");
 
     //***ABOVE***//
     
@@ -28,13 +29,13 @@ void web_setup ()
 
 
     //***Initialisation***//
-    initialisation = ESPUI.button("Initialisation", initialisation_callback, ControlColor::None, "");
+    initialisation = ESPUI.button("Initialisation", initialisation_callback, ControlColor::None, "Lancer");
 
 
     //Remaning_volume
     label_remaining_volume_mL = ESPUI.label("Volume restant en mL", ControlColor::None, "Volume restant en mL");
 
-    ESPUI.addControl(ControlType::Slider, "Distance", "0", ControlColor::None, label_remaining_volume_mL, remaining_volume_mL_callback, (void*)19);
+    remaining_volume_mL = ESPUI.addControl(ControlType::Slider, "Distance", "0", ControlColor::None, label_remaining_volume_mL, remaining_volume_mL_callback, (void*)19);
 
     ESPUI.sliderContinuous = true;
 
@@ -50,8 +51,8 @@ void web_setup ()
     float diametre = 10;    
     std::string temp = "internal diameter : " + std::to_string(diametre);
     //fin test
-    syringe_volume_mL =ESPUI.addControl( ControlType::Label, "Caractéristiques de la seringue 1 : ", "Volume total = ? mL" , ControlColor::None, syringe_ref);
-    syringe_diameter_mm =ESPUI.addControl( ControlType::Label, "Caractéristiques de la seringue 1 : ", temp.c_str(), ControlColor::None, syringe_ref);
+    syringe_volume_mL =ESPUI.addControl( ControlType::Label, "Caractéristiques de la seringue : ", "Volume total = ? mL" , ControlColor::None, syringe_ref);
+    syringe_diameter_mm =ESPUI.addControl( ControlType::Label, "Caractéristiques de la seringue : ", temp.c_str(), ControlColor::None, syringe_ref);
 
     choose_syringe = ESPUI.addControl(ControlType::Button, "Choisir cette seringue", "Utiliser cette seringue", ControlColor::None, syringe_selection, choose_syringe_callback, (void*)19);
   
-- 
GitLab