mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-12-18 00:07:50 +00:00
Don't init the tone timer if no BEEPER_PIN
This commit is contained in:
parent
c6ff39cc14
commit
0543362b34
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user