From a6da23104ba4d12bfb29ac223414bf6a5d4637cc Mon Sep 17 00:00:00 2001 From: midilab Date: Wed, 4 May 2022 06:51:09 -0300 Subject: [PATCH] @mightycoco implementation changes for XIAO m0 --- src/uClock.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/uClock.cpp b/src/uClock.cpp index 1f9572b..a22bc56 100755 --- a/src/uClock.cpp +++ b/src/uClock.cpp @@ -38,7 +38,6 @@ IntervalTimer _uclockTimer; // Seedstudio XIAO M0 port #if defined(SEEED_XIAO_M0) #include -TimerTCC0 _uclockTimer; #endif #if defined(ARDUINO_ARCH_AVR) @@ -78,10 +77,10 @@ void uclockInitTimer() #endif #if defined(SEEED_XIAO_M0) - _uclockTimer.initialize(init_clock); + TimerTcc0.initialize(init_clock); // attach to generic uclock ISR - _uclockTimer.attachInterrupt(uclockISR); + TimerTcc0.attachInterrupt(uclockISR); #endif } #endif @@ -207,7 +206,7 @@ void uClockClass::setTimerTempo(float bpm) #endif #if defined(SEEED_XIAO_M0) - _uclockTimer.setPeriod(tick_us_interval); + TimerTcc0.setPeriod(tick_us_interval); #endif #endif }