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

Loading…
Cancel
Save