Don't init the tone timer if no BEEPER_PIN

This commit is contained in:
Scott Lahteine 2018-03-17 18:34:16 -05:00
parent c6ff39cc14
commit 0543362b34

View File

@ -648,7 +648,7 @@ void setup() {
#ifdef HAL_INIT
HAL_init();
#ifdef ARDUINO_ARCH_SAM
#if defined(ARDUINO_ARCH_SAM) && PIN_EXISTS(BEEPER)
toneInit();
#endif
#endif