Browse Source

No noTone needed, but delay is

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

+ 2
- 3
Marlin/ultralcd.cpp View File

@@ -1544,11 +1544,10 @@ 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);
1547
+      tone(BEEPER, freq, duration);
1548 1548
       delay(duration);
1549
-      noTone(BEEPER);
1550 1549
     #elif defined(LCD_USE_I2C_BUZZER)
1551
-      lcd.buzz(duration,freq);
1550
+      lcd.buzz(duration, freq);
1552 1551
     #else
1553 1552
       delay(duration);
1554 1553
     #endif

Loading…
Cancel
Save