Move delay back without changing the pin interaction timing

This commit is contained in:
Philipp Matthias Schaefer 2020-02-02 20:37:12 +01:00
parent f6886a7a78
commit 409ea1d056

View file

@ -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