1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 13:56:24 +00:00

Fixes a compilation error introduced by #4448

This commit is contained in:
João Brázio 2016-07-29 18:33:42 +01:00
parent c677d2ac56
commit 8896f08074

View File

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