Hi.
I m using the following function in order to set up an Alarm 5 mins later than the current time.
Most of the times is working fine..
BUT
occasionally it triggers the alarm a few seconds later than the current time and NOT 5 mins later. :o
Can someone please tell me why ?
Thank you in advance.
void Set_Failure_Alarm()
{
Clock.getTime(year, month, date, DoW, hour, minute, second);
delay(1000);
Clock.setA1Time(DoW, hour, minute+5, 00, 8, false, false, false);
delay(100);
Clock.turnOnAlarm(1); // Turn on A1 alarm, with external interrupt
delay(100);
// Serial.println("FAILURE Alarm 1 SET +5 MINUTES");
//Clock.setA2Time(00, hour, minute+10, 64, false, false, false);
Clock.turnOffAlarm(2); // Turn on A2 alarm, with external interrupt
delay(100);
// Serial.println("FAILURE Alarm 2 TURNED OFF");
}