Page 1 of 1

[Closed] Error in cores/arduino/HardwareTimer.cpp

Posted: Mon Nov 30, 2020 7:03 pm
by mlundin
I think there is a typo in cores/arduino/HardwareTimer.cpp line 1251

Code: Select all

#if defined(TIM22_BASE)
  if (instance == TIM22) {
    index = TIMER2_INDEX;
  }
#endif
this should probably be

Code: Select all

#if defined(TIM22_BASE)
  if (instance == TIM22) {
    index = TIMER22_INDEX;
  }
#endif

Re: Error in cores/arduino/HardwareTimer.cpp

Posted: Tue Dec 01, 2020 7:43 am
by fpiSTM