As much of a claimed mess it is, I have a program working on my Arduino R3 board.
I add a bit of code so if it has to wait more than 9 seconds it displays the "correct" time on the display.
1 x 7 segment display.
So if it is 10, it will flash 1 then quickly the 0.
Below 10 is easy......
So the code works.
It runs, and does all it should.
I add this bit of code:
if (delay_time > 9)
{
bcd(delay_time/10);
delay(idp);
bcd((delay_time%10));
}
else
{
bcd(delay_time);
}
Originally it was simple the "else" statement - but without the condition.
Now, I upload the code to the Arduino, it doesn't say anything is wrong with the code......
I run it, and it reboots as soon as I start the main (well, second main) part of the code.
Its all there...... There are no external dependencies or stuff like that. It simply tests/checks if "delay_time" is greater than 9 and does the first block of code if it is, or the second block if it isn't.
I am getting a lot of this kind of stuff happening recently.
I have code working, I change something in a similar way to how I have done above and the code just won't run.
It just reboots the Arduino every time it gets to that piece of code.
Another example is that I have "serial.print( )" stuff here and there to tell me where it is at.
Not too much. But enough to keep track of things.
I add a bit of code and when it gets to one of these "serial.print( )" bits, a whole lot of gibberish is printed on the screen.
As though I haven't closed one of the " on a line.
I go over it and all the " have their respective " at the other end of the line.
I take out the OTHER few lines of code and it works as expected.
Anyone, please?

