From 8896f08074ed4be09b3f6f30603df79ce7e21534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Br=C3=A1zio?= Date: Fri, 29 Jul 2016 18:33:42 +0100 Subject: [PATCH] Fixes a compilation error introduced by #4448 --- Marlin/speaker.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/speaker.h b/Marlin/speaker.h index 0bc2a9a9f..e3a0f9670 100644 --- a/Marlin/speaker.h +++ b/Marlin/speaker.h @@ -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;