diff --git a/web.cpp b/web.cpp index 0ee95806fc9aef6023edd2090d82b5bac28c7278..a06ab42dd4e68da1567f8b5aeb516c51d2962898 100644 --- a/web.cpp +++ b/web.cpp @@ -408,7 +408,7 @@ void switch_push_pull_choice_callback (Control* sender, int value, void* param) { case S_ACTIVE: syringe_filled.set_push(true); - + syringe_filled.write_Json (); ESPUI.print(label_push_pull_choice, "Injection"); break; @@ -416,7 +416,7 @@ void switch_push_pull_choice_callback (Control* sender, int value, void* param) case S_INACTIVE: syringe_filled.set_push(false); - + syringe_filled.write_Json (); ESPUI.print(label_push_pull_choice, "Aspiration"); break; @@ -467,6 +467,8 @@ 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()); + syringe_filled.write_Json(); + serial_print ("syringe_initial_volume (sender->value)", sender); @@ -594,6 +596,7 @@ void syringe_pump_length_mm_callback(Control* sender, int type) ***/ { syringe_filled.set_syringe_pump_length_mm(sender->type); + syringe_filled.write_Json(); serial_print ("syringe_pump_length (sender->value)", sender); @@ -615,12 +618,14 @@ void clockwise_equals_push_callback(Control* sender, int value) case S_ACTIVE: syringe_filled.set_clockwise_equals_push(true); ESPUI.print(clockwise_equals_push_label, "Horaire = Injection"); + syringe_filled.write_Json(); break; case S_INACTIVE: syringe_filled.set_clockwise_equals_push(false); ESPUI.print(clockwise_equals_push_label, "Horaire = Aspiration"); + syringe_filled.write_Json(); break; } @@ -643,6 +648,7 @@ void syringe_selection_callback(Control* sender, int value) select_value = sender->value; syringe_filled.set_name_syringe(select_value); + syringe_filled.write_Json(); serial_print ("syringe_selection (sender->value)", sender);