From efeea9bccf7c2e5414e35e5dd213d164fc0ef32e Mon Sep 17 00:00:00 2001 From: Tim Moore Date: Fri, 23 Aug 2019 20:30:11 -0700 Subject: [PATCH] pca9632_buzz fix (#15020) --- Marlin/src/lcd/ultralcd.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Marlin/src/lcd/ultralcd.cpp b/Marlin/src/lcd/ultralcd.cpp index f201c1b2a..b25907a62 100644 --- a/Marlin/src/lcd/ultralcd.cpp +++ b/Marlin/src/lcd/ultralcd.cpp @@ -66,11 +66,14 @@ #if HAS_BUZZER #include "../libs/buzzer.h" + #if ENABLED(PCA9632_BUZZER) + #include "../feature/leds/pca9632.h" + #endif void MarlinUI::buzz(const long duration, const uint16_t freq) { #if ENABLED(LCD_USE_I2C_BUZZER) lcd.buzz(duration, freq); #elif ENABLED(PCA9632_BUZZER) - pca9632_buzz(const long duration, const uint16_t freq) { + pca9632_buzz(duration, freq); #elif USE_BEEPER buzzer.tone(duration, freq); #endif