Skip to content

Commit

Permalink
pca9632_buzz fix (MarlinFirmware#15020)
Browse files Browse the repository at this point in the history
  • Loading branch information
timmmoore authored and thinkyhead committed Aug 24, 2019
1 parent e61e54a commit efeea9b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Marlin/src/lcd/ultralcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit efeea9b

Please sign in to comment.