[chronojump] Wifi terminal. Ping returns state of the sensor



commit b5548249057d21e6cc270c27f4ad8f61864c6c9a
Author: Xavier Padullés <x padulles gmail com>
Date:   Tue Aug 24 14:25:23 2021 +0200

    Wifi terminal. Ping returns state of the sensor

 arduino/lightChro/terminal/terminal.ino | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/arduino/lightChro/terminal/terminal.ino b/arduino/lightChro/terminal/terminal.ino
index 0afa1d4de..b6f036550 100644
--- a/arduino/lightChro/terminal/terminal.ino
+++ b/arduino/lightChro/terminal/terminal.ino
@@ -326,6 +326,7 @@ void executeCommand(uint16_t command)
     if ((command & ping) == ping) {
       Serial.println("Pong");
       time0 = millis(); //empieza a contar time
+      sample.state = digitalRead(2);
       flagint = HIGH;
     }
   }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]