-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
multitimer: allow one-shot alarms (delete after) #2781
Conversation
Looks good to me... @frigis1 ? |
I might adjust this to call the variable |
That's been done, I'll test this for a little while. I'm also considering instead using hooks ( |
So just to be clear, by copying Why exactly did it need to be copied, rather than just having |
Yes, exactly - the two parts are hard mode and resetting the timer, the latter being possible via a custom handler, the former I'm not certain (going to look into it) |
I suspect this will do the trick, but need to give it a good test first |
c7f20db
to
8a63039
Compare
This is good to go now - thanks for your patience!
|
I'm just looking at this, and as far as I can tell, the idea is that for hard mode, you're trying to get Before this PR, we just set Can we not just do the same, and then when you want to show the alarm from Or am I missing something? |
Yes, that might be a simpler solution in fact. The original multitimer code modified the buzz count, but we could just buzz |
Cool, thanks! That would be great. Sorry about that - I'm just a bit anxious about bits tacked onto the scheduler if we can do without them. It's a bit hard to see I did notice your |
That makes sense, not a problem. The |
Just needs a re-test
All good now |
8a8c8fb
to
8cf0782
Compare
Thanks! |
@frigis1 would you be happy with a "one shot" addition to multitimer? This lets a user set a timer or alarm to delete itself, once it's sounded