Skip to content

Multi weekly alarm#44

Open
bvandaele wants to merge 4 commits intoPaulStoffregen:masterfrom
bvandaele:multi-weekly-alarm
Open

Multi weekly alarm#44
bvandaele wants to merge 4 commits intoPaulStoffregen:masterfrom
bvandaele:multi-weekly-alarm

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