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 }