Skip to content
Snippets Groups Projects
Commit a932e749 authored by Scott Lahteine's avatar Scott Lahteine
Browse files

No noTone needed, but delay is

parent 9c5d14ea
No related branches found
No related tags found
No related merge requests found
......@@ -1544,11 +1544,10 @@ void lcd_buzz(long duration, uint16_t freq) {
if (freq > 0) {
#if BEEPER > 0
SET_OUTPUT(BEEPER);
tone(BEEPER, freq);
tone(BEEPER, freq, duration);
delay(duration);
noTone(BEEPER);
#elif defined(LCD_USE_I2C_BUZZER)
lcd.buzz(duration,freq);
lcd.buzz(duration, freq);
#else
delay(duration);
#endif
......
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