diff --git a/web.cpp b/web.cpp index 57a7011219e7c8c3438d6ae5c2b8358ce7aa6635..cd805bd286f68cf24c2ea1d12ecda86d1a564c7f 100644 --- a/web.cpp +++ b/web.cpp @@ -998,17 +998,14 @@ void Web :: serial_print (String name, Control* sender) void Web :: web_loop() { - if(millis() > last_time + 500) { + if(millis() > last_time + 4) { last_time = millis(); //UPDATES - ESPUI.updateSlider(remaining_volume_mL, syringe_filled.step_to_mm(syringe_filled.where_step()*100/syringe_filled.get_syringe_pump_length_mm())); - if (syringe_filled.is_running()) - style_syringe_pump_on(); - else + if (syringe_filled.is_running()==false) style_syringe_pump_off(); if (syringe_filled.get_emergency())