Main loop
********************************************************/
void loop() {
CheckForPellet();
if (PelletAvailable && FEDmode != 5) { // Don't sleep during extinction testing, and sleep only if sleepflag !=1
sleep();
}
else {
CheckPokes();
DateTime now = rtc.now();
if (Ratio_Met == true && (now.hour() >= 18 && now.hour() < 21) { // addition to adjust time based on 24 hour clock
Feed();
}
}
//SerialOut();
--
You received this message because you are subscribed to the Google Groups "FEDforum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fedforum+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fedforum/53a96e4a-9ae7-4ef4-9703-9b8512ad3fcfn%40googlegroups.com.