Skip to content

Commit

Permalink
Fix #1213
Browse files Browse the repository at this point in the history
  • Loading branch information
mriscoc committed Jan 12, 2024
1 parent d0934b9 commit d88f41e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Marlin/src/lcd/e3v2/common/encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit d88f41e

Please sign in to comment.