From 1767b06bb9955c915305b125326d9b1376b0968c Mon Sep 17 00:00:00 2001 From: midilab Date: Wed, 4 May 2022 07:20:08 -0300 Subject: [PATCH] avoid volatile warnings for setTimerTempo --- src/uClock.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uClock.cpp b/src/uClock.cpp index fff27e2..0ff9b21 100755 --- a/src/uClock.cpp +++ b/src/uClock.cpp @@ -226,7 +226,7 @@ void uClockClass::setTempo(float bpm) tempo = bpm ) - setTimerTempo(tempo); + setTimerTempo(bpm); } @@ -373,7 +373,7 @@ void uClockClass::handleTimerInt() if (bpm != tempo) { if (bpm >= MIN_BPM && bpm <= MAX_BPM) { tempo = bpm; - setTimerTempo(tempo); + setTimerTempo(bpm); } } }