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

[BUG] When SPEAKER was enabled, setting LCD_FEEDBACK_FREQUENCY_DURATION_MS and LCD_FEEDBACK_FREQUENCY_HZ to zero does not turn off LCD encoder tick sound #1213

Closed
Abasz opened this issue Jan 12, 2024 · 2 comments
Labels
Bug: Potential ? Is it a bug? confirmation or more user feedback is required

Comments

@Abasz
Copy link

Abasz commented Jan 12, 2024

Did you test with a precompiled firmware?

Yes, and the problem still exists.

Bug Description

Even though I set LCD_FEEDBACK_FREQUENCY_DURATION_MS and LCD_FEEDBACK_FREQUENCY_HZ to zero in config, I still get tone on encoder click.

I think the issue is that in the code below the BUZZ frequency is hard coded instead of using the above variables:

// TODO: Replace with ui.quick_feedback
void Encoder_tick() {
  #if ENABLED(SPEAKER)
    if (ui.sound_on) BUZZ(50,800);
  #elif HAS_BEEPER
    if (ui.sound_on) buzzer.click(10);
  #endif
}

I happy to submit a quick PR where I change the 50 and the 800 to the config values. Let me know what you prefer.

Bug Timeline

Issue started when #if ENABLED(SPEAKER) if (ui.sound_on) BUZZ(50,800); line was introduced to the code

Expected behavior

To be able to disable the LCD UI menu feedback while keeping sound for events like filament runout on.

Actual behavior

LCD UI menu sound is tied to the sound on and off

Steps to Reproduce

  1. Set the LCD_FEEDBACK_FREQUENCY_DURATION_MSandLCD_FEEDBACK_FREQUENCY_HZ` to zero and compile
  2. Enable sound
  3. listen to the beep on encoder click

Version of Professional Firmware

20240107

Printer model

ender 3v2

Electronics

SKR mini

LCD/Controller

Dwin

Other add-ons

No response

Bed Leveling

UBL Bilinear mesh

Your Slicer

Cura

Host Software

SD Card (headless)

Additional information & file uploads

No response

@Abasz Abasz added the Bug: Potential ? Is it a bug? confirmation or more user feedback is required label Jan 12, 2024
@mriscoc mriscoc changed the title [BUG] Setting LCD_FEEDBACK_FREQUENCY_DURATION_MS and LCD_FEEDBACK_FREQUENCY_HZ to zero does not turn off LCD menu navigation sound [BUG] When SPEAKER was enabled, setting LCD_FEEDBACK_FREQUENCY_DURATION_MS and LCD_FEEDBACK_FREQUENCY_HZ to zero does not turn off LCD encoder tick sound Jan 12, 2024
@mriscoc
Copy link
Owner

mriscoc commented Jan 12, 2024

Thank you!

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 13, 2024
Apie56 pushed a commit to Apie56/Ender-3-V2-Mrisco that referenced this issue Apr 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug: Potential ? Is it a bug? confirmation or more user feedback is required
Projects
None yet
Development

No branches or pull requests

2 participants