瀏覽代碼

Merge pull request #4458 from jbrazio/followup-4448

Fixes a compilation error introduced by #4448
João Brázio 9 年之前
父節點
當前提交
3367e79fec
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      Marlin/speaker.h

+ 1
- 1
Marlin/speaker.h 查看文件

@@ -70,7 +70,7 @@ class Speaker: public Buzzer {
70 70
         this->state.period = 1000000UL / this->state.tone.frequency;
71 71
 
72 72
         this->state.counter =
73
-          (this->state.tone.counter * 1000L) / this->state.period;
73
+          (this->state.tone.duration * 1000L) / this->state.period;
74 74
 
75 75
         this->state.period   >>= 1;
76 76
         this->state.counter <<= 1;

Loading…
取消
儲存