From 2460f82d8b507a14d843b0fc0062a01befe59a6c Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Thu, 30 Jul 2015 22:39:27 -0700 Subject: [PATCH] Make proper distinction between BEEPER and HAS_BUZZER --- Marlin/buzzer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/buzzer.cpp b/Marlin/buzzer.cpp index fd3d161ab..6c3c37a57 100644 --- a/Marlin/buzzer.cpp +++ b/Marlin/buzzer.cpp @@ -7,7 +7,7 @@ if (freq > 0) { #if ENABLED(LCD_USE_I2C_BUZZER) lcd_buzz(duration, freq); - #elif HAS_BUZZER // on-board buzzers have no further condition + #elif defined(BEEPER) && BEEPER >= 0 // on-board buzzers have no further condition SET_OUTPUT(BEEPER); #ifdef SPEAKER // a speaker needs a AC ore a pulsed DC //tone(BEEPER, freq, duration); // needs a PWMable pin