From d88f41e34b9bd418152e60b0c9391b7e04664007 Mon Sep 17 00:00:00 2001 From: Miguel Risco-Castillo Date: Fri, 12 Jan 2024 13:23:07 -0500 Subject: [PATCH] Fix https://github.com/mriscoc/Ender3V2S1/issues/1213 --- Marlin/src/lcd/e3v2/common/encoder.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Marlin/src/lcd/e3v2/common/encoder.cpp b/Marlin/src/lcd/e3v2/common/encoder.cpp index 1b1561ad1c..2acccec6b9 100644 --- a/Marlin/src/lcd/e3v2/common/encoder.cpp +++ b/Marlin/src/lcd/e3v2/common/encoder.cpp @@ -50,10 +50,12 @@ EncoderRate encoderRate; // 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); + #if HAS_CHIRP + #if ENABLED(SPEAKER) + if (ui.sound_on) BUZZ(LCD_FEEDBACK_FREQUENCY_DURATION_MS, LCD_FEEDBACK_FREQUENCY_HZ); + #elif HAS_BEEPER + if (ui.sound_on) buzzer.click(10); + #endif #endif }