diff --git a/web.cpp b/web.cpp index b9160eef6188982e9888089a8d48e48f553d18e7..6c6a46448014bc82a3591b725f3d23c2d1a4390f 100644 --- a/web.cpp +++ b/web.cpp @@ -148,7 +148,7 @@ void stop_syringe_pump_callback (Control* sender, int value, void* param) -Return : / -Action : Linking the switch of the syringe pump status and the actions. ***/ -{ +{(void)param; //Avoid the unused Warning syringe_pump_off(); Serial.println("Syringe_pump stopped"); @@ -163,7 +163,7 @@ void syringe_filled_placement_callback (Control* sender, int value, void* param) -Return : / -Action : Linking the switch of the syringe filled status(placed or not) and the actions. ***/ -{ +{(void)param; //Avoid the unused Warning switch (value) { case S_ACTIVE: @@ -337,7 +337,7 @@ void volume_exchange_mL_callback (Control* sender, int value, void* param) -Return : / -Action : Enable to choose the volume that woud be exchanged. ***/ -{ +{(void)param; //Avoid the unused Warning syringe_filled.set_exchange_volume_mL(atof(sender->value.c_str())); syringe_filled.write_Json (); @@ -357,7 +357,7 @@ void exchange_throughtput_uL_per_sec_callback (Control* sender, int value, void* -Return : / -Action : Enable to choose the volume that woud be exchanged. ***/ -{ +{(void)param; //Avoid the unused Warning syringe_filled.set_exchange_throughput_uL_per_sec(atof(sender->value.c_str())); syringe_filled.write_Json (); @@ -379,7 +379,7 @@ void switch_push_pull_choice_callback (Control* sender, int value, void* param) -Action : Change the label_push_pull_choice to display the choice. Change the style of the controller involved. ***/ -{ +{(void)param; //Avoid the unused Warning switch (value) { @@ -432,7 +432,7 @@ void remaining_volume_mL_callback (Control* sender, int value, void* param) -Return : / -Action : Linking the display with the current volume remaining. ***/ -{ +{(void)param; //Avoid the unused Warning ESPUI.updateSlider(remaining_volume_mL, syringe_filled.get_remaining_volume_mL()); } @@ -443,13 +443,13 @@ void remaining_time_sec_callback (Control* sender, int value, void* param) -Return : / -Action : Linking the display with the current time remaining for the exchange. ***/ -{ +{(void)param; //Avoid the unused Warning float remaining_time_sec_value = syringe_filled.get_remaining_volume_mL()/syringe_filled.get_exchange_throughput_uL_per_sec(); ESPUI.updateSlider(remaining_time_sec, remaining_time_sec_value); } void start_exchange_callback (Control* sender, int value, void* param) -{ +{(void)param; //Avoid the unused Warning syringe_pump_on(); Serial.println("Exchange start"); @@ -461,7 +461,7 @@ void start_exchange_callback (Control* sender, int value, void* param) void initial_volume_mL_callback (Control* sender, int value, void* param) -{ +{(void)param; //Avoid the unused Warning syringe_filled.set_remaining_volume_mL((sender->value).toFloat()); Serial.println("syringe_initial_volume (sender->value)"); @@ -481,7 +481,7 @@ void choose_syringe_callback (Control* sender, int value, void* param) -Return : / -Action : Print the value of the button state via the serial port. ***/ -{ +{(void)param; //Avoid the unused Warning switch (value) { case B_DOWN: @@ -568,7 +568,7 @@ void add_syringe_callback (Control* sender, int value, void* param) -Action : Print the value of the button state via the serial port. Enable to save data in the syringe_json file. ***/ -{ +{(void)param; //Avoid the unused Warning switch (value) { case B_DOWN: