From b4821743165d3f150cfa51558d5752b53d200ca8 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Thu, 11 Apr 2024 21:08:53 +0200 Subject: [PATCH] should stop --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 25a87d5..09d6b72 100644 --- a/main.cpp +++ b/main.cpp @@ -34,7 +34,7 @@ int main(int argc, char* argv[]) { int lastEtat = digitalRead(TIRETTE_GPIO); // Boucle principale - while (true) { + while (!client.shouldStop()) { int etat = digitalRead(TIRETTE_GPIO); if (etat == LOW) {