Move loop before functions implementing the details

This commit is contained in:
Philipp Matthias Schaefer 2020-02-02 21:11:06 +01:00
parent ae1a32d549
commit 7449b87004

View file

@ -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();
}