Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Buzzer Init #19559

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Marlin/src/MarlinCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,9 @@ void setup() {
SERIAL_ECHO_MSG("Compiled: " __DATE__);
SERIAL_ECHO_MSG(STR_FREE_MEMORY, freeMemory(), STR_PLANNER_BUFFER_BYTES, (int)sizeof(block_t) * (BLOCK_BUFFER_SIZE));

// Init buzzer pins
TERN_(USE_BEEPER, buzzer.init());

// Set up LEDs early
#if HAS_COLOR_LEDS
SETUP_RUN(leds.setup());
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/libs/buzzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@

public:
/**
* @brief Class constructor
* @brief Init Buzzer
*/
Buzzer() {
static inline void init() {
thinkyhead marked this conversation as resolved.
Show resolved Hide resolved
SET_OUTPUT(BEEPER_PIN);
reset();
}
Expand Down