Skip to content

Commit 19dec27

Browse files
mriscocApie56
authored andcommitted
1 parent e890f4b commit 19dec27

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Marlin/src/lcd/e3v2/common/encoder.cpp

+6-4
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ EncoderRate encoderRate;
5050

5151
// TODO: Replace with ui.quick_feedback
5252
void Encoder_tick() {
53-
#if ENABLED(SPEAKER)
54-
if (ui.sound_on) BUZZ(50,800);
55-
#elif HAS_BEEPER
56-
if (ui.sound_on) buzzer.click(10);
53+
#if HAS_CHIRP
54+
#if ENABLED(SPEAKER)
55+
if (ui.sound_on) BUZZ(LCD_FEEDBACK_FREQUENCY_DURATION_MS, LCD_FEEDBACK_FREQUENCY_HZ);
56+
#elif HAS_BEEPER
57+
if (ui.sound_on) buzzer.click(10);
58+
#endif
5759
#endif
5860
}
5961

0 commit comments

Comments
 (0)