Better home for 'chirp'

This commit is contained in:
Scott Lahteine 2020-05-27 13:38:37 -05:00
parent 3bf0d8d161
commit 4724af1011

View File

@ -267,6 +267,10 @@ public:
static void buzz(const long duration, const uint16_t freq);
#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)
static void update_indicators();
#endif
@ -398,12 +402,6 @@ public:
static millis_t next_filament_display;
#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);
#if HAS_BUZZER
static void completion_feedback(const bool good=true);