Browse Source

Fix BEEPER duration

Scott Lahteine 9 years ago
parent
commit
9c5d14ea68
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      Marlin/ultralcd.cpp

+ 3
- 1
Marlin/ultralcd.cpp View File

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

Loading…
Cancel
Save