Commit ea9ee7cd authored by Markéta Jedličková's avatar Markéta Jedličková
Browse files

Hart beat update, no sanse to have just void function

parent 08a46c76
......@@ -147,16 +147,7 @@ void loop()
Serial.println();
heartBeat();
idCounter ++;
delay(MS_DELAY);
}
// function for LED signalization
void heartBeat()
{
// START LED hart beat
pinMode(M_led_pin, OUTPUT);
digitalWrite(D13_led_pin, HIGH);
......@@ -168,6 +159,11 @@ void heartBeat()
digitalWrite(D13_led_pin, LOW);
pinMode(M_led_pin, INPUT);
// END LED hart beat
delay(MS_DELAY);
idCounter ++;
delay(MS_DELAY);
}
......@@ -297,16 +297,7 @@ void loop()
Serial.println();
heartBeat();
idCounter ++;
delay(MS_DELAY);
}
// function for LED signalization
void heartBeat()
{
// START LED hart beat
pinMode(M_led_pin, OUTPUT);
digitalWrite(D13_led_pin, HIGH);
......@@ -318,6 +309,9 @@ void heartBeat()
digitalWrite(D13_led_pin, LOW);
pinMode(M_led_pin, INPUT);
// END LED hart beat
idCounter ++;
delay(MS_DELAY);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment