diff --git a/arduino/door_status.ino b/arduino/door_status.ino index 7a21a3d..0eedc1e 100644 --- a/arduino/door_status.ino +++ b/arduino/door_status.ino @@ -30,6 +30,18 @@ void setup(){ pinMode(GREEN_LED_OUTPUT_PIN, OUTPUT); } +void loop(){ + print_status(); + + update_measured_state_counter(); + + update_published_state(); + + delay(DELAY_TIME); + + update_led_pins(); +} + void print_status() { Serial.print(" "); Serial.print(published_state); @@ -70,15 +82,3 @@ void update_led_pins() { digitalWrite(YELLOW_LED_OUTPUT_PIN, LOW); } } - -void loop(){ - print_status(); - - update_measured_state_counter(); - - update_published_state(); - - delay(DELAY_TIME); - - update_led_pins(); -}