8000 Multi weekly alarm by bvandaele · Pull Request #44 · PaulStoffregen/TimeAlarms · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

bvandaele
Copy link

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.

This was referenced Nov 13, 2019
@tonilopezmr
Copy link

@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++) {

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++) {

Copy link
Author

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

@Jediweirdo
Copy link
Jediweirdo commented Apr 27, 2024

@tonilopezmr Did this ever get merged? It looks like it works now and this would be pretty sweet to have in the main build

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

Successfully merging this pull request may close these issues.

3 participants
0