#fix inversion état relais
This commit is contained in:
parent
bc904d4f01
commit
62211f3226
@ -130,7 +130,7 @@ void loop() {
|
|||||||
} // if
|
} // if
|
||||||
}
|
}
|
||||||
|
|
||||||
if (digitalRead(ENCROT_BP) && (currentMillis - LastReadBP > 250)){
|
if (!digitalRead(ENCROT_BP) && (currentMillis - LastReadBP > 250)){
|
||||||
LastReadBP = currentMillis;
|
LastReadBP = currentMillis;
|
||||||
statutDecompte = !statutDecompte;
|
statutDecompte = !statutDecompte;
|
||||||
if (statutDecompte) {
|
if (statutDecompte) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user