ESP8266TimeAlarms icon indicating copy to clipboard operation
ESP8266TimeAlarms copied to clipboard

Sunday 00:00 alarm error

Open app-vrb opened this issue 3 years ago • 0 comments

Hi

if I try to set an alarm on Sunday before 1am in case of TZ set as CET-1 and I get an error 254

id=Alarm.alarmRepeat(dowSunday,0,1,0,WeeklyAlarm); // 0:1:0 every Saturday

The problem according to me it's do because the calculation it's made in EpochTime and the variable "value" in all the function is set as time_t and become negative. I fixed changing the variable "value" to int in ESP8266TimeAlarms.h and cpp. Seems to work now, but I am not sure it's the correct way.

thanks

app-vrb avatar May 05 '21 14:05 app-vrb