Move delay back without changing the pin interaction timing
This commit is contained in:
parent
f6886a7a78
commit
409ea1d056
1 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,6 @@ void loop(){
|
||||||
Serial.print(space_status_b4);
|
Serial.print(space_status_b4);
|
||||||
Serial.print(" ");
|
Serial.print(" ");
|
||||||
Serial.println(space_status);
|
Serial.println(space_status);
|
||||||
delay(DELAY_TIME);
|
|
||||||
|
|
||||||
// pin check of the reed sensor and low pass filter
|
// pin check of the reed sensor and low pass filter
|
||||||
if (pin_status == 0){
|
if (pin_status == 0){
|
||||||
|
@ -55,6 +54,8 @@ void loop(){
|
||||||
space_status_b4 = 0;
|
space_status_b4 = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delay(DELAY_TIME);
|
||||||
|
|
||||||
// ampel / traffic light signals
|
// ampel / traffic light signals
|
||||||
if (space_status_b4 == 1) {
|
if (space_status_b4 == 1) {
|
||||||
// closed
|
// closed
|
||||||
|
|
Reference in a new issue