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
   if (freq > 0) {
1544
   if (freq > 0) {
1545
     #if BEEPER > 0
1545
     #if BEEPER > 0
1546
       SET_OUTPUT(BEEPER);
1546
       SET_OUTPUT(BEEPER);
1547
-      tone(BEEPER, freq, duration);
1547
+      tone(BEEPER, freq);
1548
+      delay(duration);
1549
+      noTone(BEEPER);
1548
     #elif defined(LCD_USE_I2C_BUZZER)
1550
     #elif defined(LCD_USE_I2C_BUZZER)
1549
       lcd.buzz(duration,freq);
1551
       lcd.buzz(duration,freq);
1550
     #else
1552
     #else

Loading…
Cancel
Save