Explorar el Código

Don't init the tone timer if no BEEPER_PIN

Scott Lahteine hace 7 años
padre
commit
0543362b34
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      Marlin/src/Marlin.cpp

+ 1
- 1
Marlin/src/Marlin.cpp Ver fichero

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

Loading…
Cancelar
Guardar