if (Time.hour() <= 8) {
delay(10);
Serial4.println("GRGROF");
AlarmByPass();
}
If this runs for more than an hour the App tread fails. Keeps flashing magenta, but won’t reprogram without a reset first. Reset does start the program running again. What am I doing wrong?
Richard,
@Microlink, can you please post the code around this? It is difficult to help when we don’t have the full picture. If this code is in loop() then it will keep firing and executing the code between midnight (hour == 0) and 8am (hour==8). I’m not sure this is your intention.
Will take a few hours to be sure, but I expect it will work by not looping loop(). I did find StateTimer code on here which I’m working with now. I’m a newbie and make lots of dumb mistakes. Nice to be able to get answers really fast, I should have asked sooner.