TimeAlarm Question

Hello,

I am having a problem with the TimeAlarm library not alarming out every day. It alarms if I reset the arduino the first day but doesn’t alarm the second day. If I set the alarm in my menu it doesn’t alarm the first day. I was wondering if there was something I’m missing.

#include <Time.h>
#include <TimeAlarms.h>

int dayCount = 1;

void setup() {

setTime(12,00,00,6,11,16);
// set time to 12:00:00pm June 11 2016

Alarm.alarmRepeat(12,0,45, trackDays);
// bump the daycount at 12:00:45pm

void loop() {

Alarm.delay(250);

}

void trackDays() {

dayCount++;

}

It alarms if I reset the arduino the first day but doesn't alarm the second day.

How do you know whether it does, or not? There is nothing in that code to provide any proof.

If I set the alarm in my menu

That code doesn't have a menu. It is pointless to talk about other code that you haven't posted.