Skip to content
Snippets Groups Projects
Commit 2460f82d authored by Scott Lahteine's avatar Scott Lahteine Committed by Richard Wackerbarth
Browse files

Make proper distinction between BEEPER and HAS_BUZZER

parent 58cfcd42
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment