Folks,
I am working on my alarm clock code - still.
Luckily I am keeping older copies so if problems arise, I can go back to older ones and have something that works.
NOTE: I am NOT CHANGING ANY ELECTRICAL PART OF THE PROJECT.
I am perplexed.
I have learnt how to do things and "make my life easier" - also so I can release the code for others to use and make it easier for them to change things which are unique to me and allow it to work for them.
So: Things were going good.
The latest version was working.
I did a few changes and flashed the card. It hung. Bugga!
So I went back to the old version.
This worked - originally.
I "debugged" the problem, and flashed it gain, and that time it worked.
So I kept on "building" on that version.
A few steps later, it hung again.
So I went back to my earlier version - which as I said works.
Guess what: Now it fails too.
About 20 seconds in, up to a few minutes, it hangs.
I now have to go back TWO versions.
I dug around and got a "compare" program. Went through them and there is very little difference.
A couple of extra lines here and there. No big code re-structure. Just a couple of line changes here and there.
So riddle me this:
Why would it be that code which used to work doesn't work now if I haven't done any mechanical changes?
The earlier code (2 revisions back) does work.
THE latest hangs - well that is sort of to be expected as it is still "work in progress".
But my first back up doesn't work, yet before I started this latest effort, it did work.
Thoughts?