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

Double beep for non-existent channel, refactoring channel change #178

Closed
wants to merge 3 commits into from

Conversation

mrkusypl
Copy link

@mrkusypl mrkusypl commented Jul 8, 2024

During use, I noticed that the existence of the channel is checked every time a digit is entered. For example, suppose we have channel 35 stored, but channel 3 is empty. Entering the digit 3 will trigger a beep indicating that there is no channel 3 even though our intention is not to go to channel 3. The timeout is still in progress, so pressing 5 will go to channel 35 which exists. I have made the beep appear after the timeout has stopped (for one-digit and two-digit numbers). The problem does not appear with three-digit numbers, because there is no timeout there.

I also managed to save 8 bytes, but it works the same as before.

Modified code: 6820b0a

mrkusypl added 2 commits July 7, 2024 17:46
	modified:   app/main.c
	modified:   app/main.c
	modified:   app/main.h
@mrkusypl
Copy link
Author

mrkusypl commented Jul 8, 2024

Example:

8mb.video-XBp-4Vm0hRt8.mp4

@mrkusypl mrkusypl marked this pull request as ready for review July 8, 2024 22:01
@mrkusypl
Copy link
Author

mrkusypl commented Jul 9, 2024

Also, I added that when changing the channel by entering digits, using the arrows during the timeout will change the channel relative to the channel entered by the digits (previously, using the arrows triggered a beep).

Modified code: 53d63d8

VID_20240709_033002.mp4

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.

1 participant