Browse Source

Better home for 'chirp'

vanilla_fb_2.0.x
Scott Lahteine 5 years ago
parent
commit
4724af1011
  1. 10
      Marlin/src/lcd/ultralcd.h

10
Marlin/src/lcd/ultralcd.h

@ -267,6 +267,10 @@ public:
static void buzz(const long duration, const uint16_t freq); static void buzz(const long duration, const uint16_t freq);
#endif #endif
FORCE_INLINE static void chirp() {
TERN_(HAS_CHIRP, buzz(LCD_FEEDBACK_FREQUENCY_DURATION_MS, LCD_FEEDBACK_FREQUENCY_HZ));
}
#if ENABLED(LCD_HAS_STATUS_INDICATORS) #if ENABLED(LCD_HAS_STATUS_INDICATORS)
static void update_indicators(); static void update_indicators();
#endif #endif
@ -398,12 +402,6 @@ public:
static millis_t next_filament_display; static millis_t next_filament_display;
#endif #endif
FORCE_INLINE static void chirp() {
#if HAS_CHIRP
buzz(LCD_FEEDBACK_FREQUENCY_DURATION_MS, LCD_FEEDBACK_FREQUENCY_HZ);
#endif
}
static void quick_feedback(const bool clear_buttons=true); static void quick_feedback(const bool clear_buttons=true);
#if HAS_BUZZER #if HAS_BUZZER
static void completion_feedback(const bool good=true); static void completion_feedback(const bool good=true);

Loading…
Cancel
Save