From 62211f322617ddd62cd3cec06371bde8cb0d593e Mon Sep 17 00:00:00 2001 From: Laurent Claude Date: Fri, 20 Oct 2023 16:14:44 +0200 Subject: [PATCH] =?UTF-8?q?#fix=20inversion=20=C3=A9tat=20relais?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {