[chronojump/FS-LCD-Menu] Blue and Red button can end the capture



commit f8fbc622c5525fbf50a5bd6a55d3ff843c5238b0
Author: Xavier Padullés <testing chronojump org>
Date:   Sun Jan 9 19:18:38 2022 +0100

    Blue and Red button can end the capture

 arduino/ForceSensorLCD/ForceSensorLCD.ino | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/arduino/ForceSensorLCD/ForceSensorLCD.ino b/arduino/ForceSensorLCD/ForceSensorLCD.ino
index 7fc0ed091..a1b2e07f0 100644
--- a/arduino/ForceSensorLCD/ForceSensorLCD.ino
+++ b/arduino/ForceSensorLCD/ForceSensorLCD.ino
@@ -532,7 +532,10 @@ void capture(void)
       //      }
     }
     redButtonState = digitalRead(redButtonPin);
-    if (redButtonState) {
+    blueButtonState = digitalRead(blueButtonPin);
+    if (redButtonState || blueButtonState) {
+      redButtonState = false;
+      blueButtonState = false;
       end_capture();
     }
   }


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