Skip to content

Commit a4e0ff1

Browse files
committed
[HardwareTimer]Fix typo
Issue raised by mlundin on the forum: https://www.stm32duino.com/viewtopic.php?f=38&p=5264#p5264 Signed-off-by: Frederic Pillon <[email protected]>
1 parent 6df682d commit a4e0ff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/HardwareTimer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ timer_index_t get_timer_index(TIM_TypeDef *instance)
12481248
#endif
12491249
#if defined(TIM22_BASE)
12501250
if (instance == TIM22) {
1251-
index = TIMER2_INDEX;
1251+
index = TIMER22_INDEX;
12521252
}
12531253
#endif
12541254
return index;

0 commit comments

Comments
 (0)