♻️ Small sound / buzz refactor (#24520)

This commit is contained in:
Scott Lahteine
2022-07-18 19:53:36 -05:00
committed by GitHub
parent ed2071aabd
commit 5f2908a117
16 changed files with 49 additions and 55 deletions

View File

@@ -120,10 +120,11 @@ static void createChar_P(const char c, const byte * const ptr) {
#endif
#if ENABLED(LCD_USE_I2C_BUZZER)
void MarlinUI::buzz(const long duration, const uint16_t freq) {
if (!sound_on) return;
lcd.buzz(duration, freq);
if (sound_on) lcd.buzz(duration, freq);
}
#endif
void MarlinUI::set_custom_characters(const HD44780CharSet screen_charset/*=CHARSET_INFO*/) {