Преглед изворни кода

Fixes a compilation error introduced by #4448

João Brázio пре 8 година
родитељ
комит
8896f08074
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…
Откажи
Сачувај