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

Loading…
Cancel
Save