Browse Source

pca9632_buzz fix (#15020)

Tim Moore 6 years ago
parent
commit
efeea9bccf
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      Marlin/src/lcd/ultralcd.cpp

+ 4
- 1
Marlin/src/lcd/ultralcd.cpp View File

66
 
66
 
67
 #if HAS_BUZZER
67
 #if HAS_BUZZER
68
   #include "../libs/buzzer.h"
68
   #include "../libs/buzzer.h"
69
+  #if ENABLED(PCA9632_BUZZER)
70
+    #include "../feature/leds/pca9632.h"
71
+  #endif
69
   void MarlinUI::buzz(const long duration, const uint16_t freq) {
72
   void MarlinUI::buzz(const long duration, const uint16_t freq) {
70
     #if ENABLED(LCD_USE_I2C_BUZZER)
73
     #if ENABLED(LCD_USE_I2C_BUZZER)
71
       lcd.buzz(duration, freq);
74
       lcd.buzz(duration, freq);
72
     #elif ENABLED(PCA9632_BUZZER)
75
     #elif ENABLED(PCA9632_BUZZER)
73
-      pca9632_buzz(const long duration, const uint16_t freq) {
76
+      pca9632_buzz(duration, freq);
74
     #elif USE_BEEPER
77
     #elif USE_BEEPER
75
       buzzer.tone(duration, freq);
78
       buzzer.tone(duration, freq);
76
     #endif
79
     #endif

Loading…
Cancel
Save