Move loop before functions implementing the details
This commit is contained in:
parent
ae1a32d549
commit
7449b87004
1 changed files with 12 additions and 12 deletions
|
@ -30,6 +30,18 @@ void setup(){
|
||||||
pinMode(GREEN_LED_OUTPUT_PIN, OUTPUT);
|
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() {
|
void print_status() {
|
||||||
Serial.print(" ");
|
Serial.print(" ");
|
||||||
Serial.print(published_state);
|
Serial.print(published_state);
|
||||||
|
@ -70,15 +82,3 @@ void update_led_pins() {
|
||||||
digitalWrite(YELLOW_LED_OUTPUT_PIN, LOW);
|
digitalWrite(YELLOW_LED_OUTPUT_PIN, LOW);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop(){
|
|
||||||
print_status();
|
|
||||||
|
|
||||||
update_measured_state_counter();
|
|
||||||
|
|
||||||
update_published_state();
|
|
||||||
|
|
||||||
delay(DELAY_TIME);
|
|
||||||
|
|
||||||
update_led_pins();
|
|
||||||
}
|
|
||||||
|
|
Reference in a new issue