Unify buzz methods as MarlinUI::buzz (#14803)
This commit is contained in:
@ -157,6 +157,8 @@ void PrintCounter::loadStats() {
|
||||
#endif
|
||||
#if HAS_BUZZER && SERVICE_WARNING_BUZZES > 0
|
||||
if (doBuzz) for (int i = 0; i < SERVICE_WARNING_BUZZES; i++) BUZZ(200, 404);
|
||||
#else
|
||||
UNUSED(doBuzz);
|
||||
#endif
|
||||
#endif // HAS_SERVICE_INTERVALS
|
||||
}
|
||||
|
@ -68,7 +68,7 @@
|
||||
#include "tool_change.h"
|
||||
#endif
|
||||
|
||||
#if HAS_BUZZER && PIN_EXISTS(BEEPER)
|
||||
#if USE_BEEPER
|
||||
#include "../libs/buzzer.h"
|
||||
#endif
|
||||
|
||||
@ -749,7 +749,7 @@ int16_t Temperature::getHeaterPower(const heater_ind_t heater_id) {
|
||||
|
||||
inline void loud_kill(PGM_P const lcd_msg) {
|
||||
Running = false;
|
||||
#if HAS_BUZZER && PIN_EXISTS(BEEPER)
|
||||
#if USE_BEEPER
|
||||
for (uint8_t i = 20; i--;) {
|
||||
WRITE(BEEPER_PIN, HIGH); delay(25);
|
||||
WRITE(BEEPER_PIN, LOW); delay(80);
|
||||
|
Reference in New Issue
Block a user