You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Time check in TimeAlarmsClass::create avoids that alarms can be created before system time is set
System time has at least to elapse 1 year (1.1.1971) before alarms can be added. I don't see a reason not to allow this. This one is required for setting up a alarm schedule at startup in combination with system time is setup later on (ie. as soon as NTP server is reachable)
Description
Time check in TimeAlarmsClass::create avoids that alarms can be created before system time is set
System time has at least to elapse 1 year (1.1.1971) before alarms can be added. I don't see a reason not to allow this. This one is required for setting up a alarm schedule at startup in combination with system time is setup later on (ie. as soon as NTP server is reachable)
if ( ! ( (dtIsAlarm(alarmType) && **now() < SECS_PER_YEAR**) || (dtUseAbsoluteValue(alarmType) && (value == 0)) ) ) {
Steps To Reproduce Problem
Alarm.alarmRepeat(1, handle);
setTime(0);
Hardware & Software
TimeAlarms 1.5.0
The text was updated successfully, but these errors were encountered: