Skip to content
Snippets Groups Projects
Commit c3b6a18c authored by Malaurie Bernard's avatar Malaurie Bernard
Browse files

Avoid the uused Warning for every param argument

parent da59e386
No related branches found
No related tags found
1 merge request!17Malaurie's work on UI + CLI interface + AccelStepper interface
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment