should stop

This commit is contained in:
ackimixs
2024-04-11 21:08:53 +02:00
parent d347f2d368
commit b482174316

View File

@@ -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) {