I have had some stability issues with a couple of programs that I have written and I was wondering never finishing the main loop()
was causing the problem. Here is a simple program that demonstrates the problem.
void setup()
{
pinMode(4,OUTPUT);
}
void loop()
{
digitalWrite(4,HIGH);
delay(100);
digitalWrite(4,LOW);
delay(100);
loop();
digitalWrite(4,HIGH);
delay(1000);
digitalWrite(4,LOW);
delay(50);
}
This will blink an LED for around 5 minutes and then it stops blinking.
Does not ever making to the end of the main loop() cause problems?
If so, why does it cause problems?