//C First X sec after feeding mode disable return
static time_t FMTimer=0;
if (ReefAngel.DisplayedMenu == FEEDING_MODE) FMTimer=now();
if (now()-FMTimer >= 0 && now()-FMTimer < 300))//300 is secs
{ReefAngel.Relay.Off(RETURN);}else{ReefAngel.Relay.On(RETURN);}
//C First X sec after feeding mode disable return
Last edited by troylong45 on Sat Jun 09, 2018 12:54 pm, edited 1 time in total.
Have you looked at the DelayedOn() function in the libraries? That would be my suggestion on where to start. (I have not read/looked through your code you posted yet. I just wanted to give you a reference place to start first.)