Skip to content
Snippets Groups Projects
Commit 0543362b authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Don't init the tone timer if no BEEPER_PIN

parent c6ff39cc
Branches
Tags
No related merge requests found
...@@ -648,7 +648,7 @@ void setup() { ...@@ -648,7 +648,7 @@ void setup() {
#ifdef HAL_INIT #ifdef HAL_INIT
HAL_init(); HAL_init();
#ifdef ARDUINO_ARCH_SAM #if defined(ARDUINO_ARCH_SAM) && PIN_EXISTS(BEEPER)
toneInit(); toneInit();
#endif #endif
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment