Fix BEEPER duration

This commit is contained in:
Scott Lahteine 2015-04-25 03:12:49 -07:00
parent b3436c875a
commit 9c5d14ea68

View File

@ -1544,7 +1544,9 @@ void lcd_buzz(long duration, uint16_t freq) {
if (freq > 0) {
#if BEEPER > 0
SET_OUTPUT(BEEPER);
tone(BEEPER, freq, duration);
tone(BEEPER, freq);
delay(duration);
noTone(BEEPER);
#elif defined(LCD_USE_I2C_BUZZER)
lcd.buzz(duration,freq);
#else