fix variable declaration outside his usage scope

pull/9/head
midilab 3 years ago
parent 9932baf937
commit 8e1d7d2ed8
  1. 3
      src/uClock.cpp

@ -167,9 +167,10 @@ void uClockClass::setTimerTempo(float bpm)
{
// 96 ppqn resolution
uint32_t tick_us_interval = (60000000 / 24 / bpm);
float tick_hertz_interval = 1/((float)tick_us_interval/1000000);
#if defined(ARDUINO_ARCH_AVR)
float tick_hertz_interval = 1/((float)tick_us_interval/1000000);
uint32_t ocr;
uint8_t tccr = 0;

Loading…
Cancel
Save