Better home for 'chirp'
This commit is contained in:
parent
3bf0d8d161
commit
4724af1011
1 changed files with 4 additions and 6 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue