Better home for 'chirp'
This commit is contained in:
parent
3bf0d8d161
commit
4724af1011
@ -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…
Reference in New Issue
Block a user