-
Notifications
You must be signed in to change notification settings - Fork 107
Multi weekly alarm #44
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
base: master
Are you sure you want to change the base?
Conversation
@bvandaele Did you check this is working for Fridays and Saturdays? I don't know why but I'm using your branch but Fridays and Saturdays, when it performs the scheduler it starts calling every time to the callback |
TimeAlarms.cpp
Outdated
// if this is a multi weekly alarm | ||
boolean updated = false; | ||
|
||
for (int dayIndex = (dowSunday-1); dayIndex != (dowSaturday-1); dayIndex++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This loop is missing Friday and Saturday, is going from (0 to 5)
for (int dayIndex = (dowSunday); dayIndex <= (dowSaturday); dayIndex++) {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your feedback. I just committed a fix.
And sorry for the delay
@tonilopezmr Did this ever get merged? It looks like it works now and this would be pretty sweet to have in the main build |
Hi,
I submit this pull request to offer a new functionality to be able to specify an alarm to be triggered multiple days every week. For example every Monday and Tuesday.
I needed this and i hope it could help others.