Browse Source

Merge pull request #1969 from thinkyhead/buzz_duration

Fix BEEPER duration
Scott Lahteine 9 years ago
parent
commit
ac9ca64c50
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Marlin/ultralcd.cpp

+ 2
- 1
Marlin/ultralcd.cpp View File

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

Loading…
Cancel
Save