Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sunday 00:00 alarm error #9

Open
app-vrb opened this issue May 5, 2021 · 0 comments
Open

Sunday 00:00 alarm error #9

app-vrb opened this issue May 5, 2021 · 0 comments

Comments

@app-vrb
Copy link

app-vrb commented May 5, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant