[chronojump: 1/4] RaceAnalyzer firmware minor optimization
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump: 1/4] RaceAnalyzer firmware minor optimization
- Date: Tue, 22 Oct 2019 09:11:55 +0000 (UTC)
commit a7d9818bf9dae4c634bb020e7f029ac20dbefa50
Author: Xavier Padullés <x padulles gmail com>
Date: Wed Oct 16 17:09:09 2019 +0200
RaceAnalyzer firmware minor optimization
arduino/raceAnalyzer/raceAnalyzer.ino | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/arduino/raceAnalyzer/raceAnalyzer.ino b/arduino/raceAnalyzer/raceAnalyzer.ino
index 5e3f82f9..b4266dc6 100644
--- a/arduino/raceAnalyzer/raceAnalyzer.ino
+++ b/arduino/raceAnalyzer/raceAnalyzer.ino
@@ -157,8 +157,9 @@ void loop() {
}
void changingA() {
+ bool photocellB = digitalRead(encoderPinB);
changingTime = micros();
- if (digitalRead(encoderPinB) == HIGH) {
+ if (photocellB == HIGH) {
encoderDisplacement--;
//digitalWrite(13, HIGH);
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]