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

Alarm: Display the time until alarm, even if it is off #698

Conversation

maksalees
Copy link
Contributor

Previously, if the alarm was turned off, when you pressed the information button, a message was displayed that the alarm was not set. The amount of time until the alarm is now displayed as well as if it is on.
What for? Allows you to save two clicks on a button if you just need to see how much time is left before the alarm

Before

Before

After

After

Previously, if the alarm was turned off, when you pressed the information button, a message was displayed that the alarm was not set. The amount of time until the alarm is now displayed as well as if it is on.
What for? Allows you to save two clicks on a button if you just need to see how much time is left before the alarm
Copy link
Contributor

@Riksu9000 Riksu9000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the alarmTime member might not be needed anymore and could be replaced with the new function. What do you think?

src/components/alarm/AlarmController.cpp Outdated Show resolved Hide resolved
src/components/alarm/AlarmController.h Outdated Show resolved Hide resolved
@maksalees maksalees force-pushed the display-time-until-alarm-even-if-is-off branch from 616ee1e to 25034cc Compare September 29, 2021 16:27
@maksalees
Copy link
Contributor Author

Looks like the alarmTime member might not be needed anymore and could be replaced with the new function. What do you think?

I agree, I just forgot to fix it 🙂

@mruss77
Copy link
Contributor

mruss77 commented Oct 1, 2021

Looks good to me!

@Itai-Nelken
Copy link
Contributor

I have been uaing this pr for some time, works fine and makes using the alarm for measuring time until something easier (don't have to turn alarm on every time).

FintasticMan added a commit to FintasticMan/InfiniTime that referenced this pull request Dec 13, 2021
… is off

Squashed commit of the following:

commit 874e1af
Author: Maxim Leshchenko <cnmaks90@gmail.com>
Date:   Wed Sep 29 20:22:58 2021 +0300

    Sorry 😂

commit 25034cc
Author: Maxim Leshchenko <cnmaks90@gmail.com>
Date:   Wed Sep 29 19:25:25 2021 +0300

    Fixes based on code review

commit 77bc346
Author: Maxim Leshchenko <cnmaks90@gmail.com>
Date:   Tue Sep 28 13:16:50 2021 +0300

    Alarm: Display the time until alarm, even if it is off
    Previously, if the alarm was turned off, when you pressed the information button, a message was displayed that the alarm was not set. The amount of time until the alarm is now displayed as well as if it is on.
    What for? Allows you to save two clicks on a button if you just need to see how much time is left before the alarm
@maksalees
Copy link
Contributor Author

Will this PR be merged?

@FintasticMan
Copy link
Member

Well at the moment it is based on quite an old revision of the develop branch, and it also has some conflicts. If you can rebase your branch onto the latest develop, it would be easier to see if it can be merged.

@Riksu9000
Copy link
Contributor

@maksalees I'm sorry it's been a long time. Probably the reason why this hasn't been merged is that we're unsure about what's the preferred behaviour. Indeed rebasing this will allow us to take another look at this.

@maksalees
Copy link
Contributor Author

I created a new rebased PR #1346

@maksalees maksalees closed this Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to an existing app/feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants