carte esclave pompe 2020 V1

Dependencies:   mbed ident_crac

Revision:
24:3fb41d2b91af
Parent:
23:7f62f27c028f
--- a/class_ventouse.cpp	Mon Jul 13 11:31:08 2020 +0000
+++ b/class_ventouse.cpp	Fri Jul 17 14:34:32 2020 +0000
@@ -83,8 +83,8 @@
 
 void Ventouse::relacher()
 {
+    if(flag_electrovanne) m_electrovanne->write(PWM_ELECTROVANNE);
     m_pompe->write(0.0);
-    if(flag_electrovanne) m_electrovanne->write(PWM_ELECTROVANNE);
 }
 
 bool Ventouse::getPression()