From d4298095c51b9b14e46a21e07efb14e5d80d7cfb Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Fri, 17 Feb 2017 11:03:21 +0100 Subject: [PATCH] Fixed timing for the music player. --- BicycleControl.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BicycleControl.ino b/BicycleControl.ino index d70ac72..b039454 100644 --- a/BicycleControl.ino +++ b/BicycleControl.ino @@ -472,7 +472,7 @@ void setIndicatorColor(byte red, byte green, byte blue) { void setBPM(short newBPM) { BPM = newBPM; - noteDuration = 15000 / BPM; + noteDuration = 240000 / BPM; } //Begins playing a new sequence of the form: {Length, BPM, note 1, time 1, note 2, time 2, ...}