[chronojump/FS-LCD-Menu: 10/17] Added Capture




commit c1cb35f0fca1dbb4ce0ac3cccb10a58fabe9672e
Author: Xavier Padullés <x padulles gmail com>
Date:   Fri Nov 26 10:46:00 2021 +0100

    Added Capture

 arduino/ForceSensorLCD/ForceSensorLCD.ino | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/arduino/ForceSensorLCD/ForceSensorLCD.ino b/arduino/ForceSensorLCD/ForceSensorLCD.ino
index 2ac00c4e1..722b8645d 100644
--- a/arduino/ForceSensorLCD/ForceSensorLCD.ino
+++ b/arduino/ForceSensorLCD/ForceSensorLCD.ino
@@ -330,7 +330,7 @@ void loop()
 
 void capture(void)
 {
-  if (capturing)
+  while (capturing)
   {
     //Checking the RCA state
     if (rcaState != lastRcaState) {       //Event generated by the RCA
@@ -386,6 +386,7 @@ void capture(void)
       //        end_capture();
       //      }
     }
+    redButtonState = digitalRead(redButtonPin);
     if (redButtonState) {
       end_capture();
     }


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