From 409ea1d05636cb2ad4d94cbfabd460ee0e67a580 Mon Sep 17 00:00:00 2001 From: Philipp Matthias Schaefer Date: Sun, 2 Feb 2020 20:37:12 +0100 Subject: [PATCH] Move delay back without changing the pin interaction timing --- arduino/door_status.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arduino/door_status.ino b/arduino/door_status.ino index ff1a4f5..6161ae3 100644 --- a/arduino/door_status.ino +++ b/arduino/door_status.ino @@ -32,7 +32,6 @@ void loop(){ Serial.print(space_status_b4); Serial.print(" "); Serial.println(space_status); - delay(DELAY_TIME); // pin check of the reed sensor and low pass filter if (pin_status == 0){ @@ -55,6 +54,8 @@ void loop(){ space_status_b4 = 0; } + delay(DELAY_TIME); + // ampel / traffic light signals if (space_status_b4 == 1) { // closed