 
     if (button_now_pressed)
         ++button_pressed_counter;
-    else
-        button_pressed_counter = 0;
+    else{
+        button_pressed_counter = 0; 
+    }
+        
 
     button_was_pressed = button_now_pressed;
     return event;

        }
        else{
            event = EV_LONGPRESS;
        }
    }
    else{

    switch(eventResult){
        case EV_NONE:               // if nothing append
            //TODO : Ne rien faire de particulier, ou attendre la fin d'une synchronisation
            
            break;
        case EV_SHORTPRESS:         // if short press
            //TODO : Allumer ou éteindre la LED (a check)
            if(digitalRead(LED_PIN) == HIGH){
                    turnOff();
            }
            else{
                    turnOn();
            }
            break;
        case EV_LONGPRESS:          // if long press
