Arduino refactoring #4
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Reference in a new issue