浏览代码

Don't init the tone timer if no BEEPER_PIN

Scott Lahteine 7 年前
父节点
当前提交
0543362b34
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/src/Marlin.cpp

+ 1
- 1
Marlin/src/Marlin.cpp 查看文件

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

正在加载...
取消
保存