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

Timer never announces "hours" when called from a special function #3269

Closed
1 task done
lightbulbjim opened this issue Feb 27, 2023 · 2 comments · Fixed by #3293
Closed
1 task done

Timer never announces "hours" when called from a special function #3269

lightbulbjim opened this issue Feb 27, 2023 · 2 comments · Fixed by #3293
Labels
bug 🪲 Something isn't working

Comments

@lightbulbjim
Copy link

Is there an existing issue for this problem?

  • I have searched the existing issues

What part of EdgeTX is the focus of this bug?

Transmitter firmware

Current Behavior

When a count-up timer has elapsed for longer than an hour, triggering an announcement via a special function will announce the time in minutes, not hours and minutes.

For example, a time of 1h20 will be announced as "80 minutes".

Note:

  • If a timer has the "minute" option enabled then the minutely callout does use hours and minutes as expected.
  • I haven't tested count-down timers.

Expected Behavior

A time under one hour should be announced in minutes, eg 20 minutes should be announced as "twenty minutes".

A time over one hours should be announced in hours and minutes, eg 1h20 should be "one hour and twenty minutes".

Steps To Reproduce

  1. Configure a count-up timer starting at 00:00.
  2. Configure a special function to call out the timer value when a switch is moved.
  3. Let the timer count until more than an hour has elapsed.
  4. Move the switch to trigger a time announcement.

Version

Other (Please specify below)

Transmitter

Radiomaster Zorro

Anything else?

Running EdgeTX 2.8.1.

@lightbulbjim lightbulbjim added bug 🪲 Something isn't working triage Bug report awaiting review / sorting labels Feb 27, 2023
@philmoz
Copy link
Collaborator

philmoz commented Mar 3, 2023

There is a special case in the code purely for special functions.

If the value is > 10 minutes then it plays as minutes, and only plays the minutes (no seconds). Under 10 minutes it plays both minutes and seconds.

I have no idea why this is the case; but I would suggest removing this and playing the time values consistently.

@lightbulbjim
Copy link
Author

If the value is > 10 minutes then it plays as minutes, and only plays the minutes (no seconds).

I believe the thinking with that was that above a certain amount of time you don't care about seconds. I'm ok with that, but it sounds like times over an hour weren't considered when making that change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
3 participants