Browse Source

Merge pull request #4458 from jbrazio/followup-4448

Fixes a compilation error introduced by #4448
João Brázio 8 years ago
parent
commit
3367e79fec
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/speaker.h

+ 1
- 1
Marlin/speaker.h View File

70
         this->state.period = 1000000UL / this->state.tone.frequency;
70
         this->state.period = 1000000UL / this->state.tone.frequency;
71
 
71
 
72
         this->state.counter =
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
         this->state.period   >>= 1;
75
         this->state.period   >>= 1;
76
         this->state.counter <<= 1;
76
         this->state.counter <<= 1;

Loading…
Cancel
Save