diff --git a/src/main.cpp b/src/main.cpp index 1b0d2e8..ecadd8d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -130,7 +130,7 @@ void loop() { } // if } - if (digitalRead(ENCROT_BP) && (currentMillis - LastReadBP > 250)){ + if (!digitalRead(ENCROT_BP) && (currentMillis - LastReadBP > 250)){ LastReadBP = currentMillis; statutDecompte = !statutDecompte; if (statutDecompte) {