Skip to content
Snippets Groups Projects
Commit 8896f080 authored by João Brázio's avatar João Brázio
Browse files

Fixes a compilation error introduced by #4448

parent c677d2ac
Branches
Tags
No related merge requests found
...@@ -70,7 +70,7 @@ class Speaker: public Buzzer { ...@@ -70,7 +70,7 @@ class Speaker: public Buzzer {
this->state.period = 1000000UL / this->state.tone.frequency; this->state.period = 1000000UL / this->state.tone.frequency;
this->state.counter = 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.period >>= 1;
this->state.counter <<= 1; this->state.counter <<= 1;
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment