From 0fdb0ae4427a56e2d4b3128e87299f58325a1040 Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Tue, 1 Dec 2020 08:40:17 +0100 Subject: [PATCH] [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 --- cores/arduino/HardwareTimer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/arduino/HardwareTimer.cpp b/cores/arduino/HardwareTimer.cpp index d26e8342b8..a7142630a5 100644 --- a/cores/arduino/HardwareTimer.cpp +++ b/cores/arduino/HardwareTimer.cpp @@ -1248,7 +1248,7 @@ timer_index_t get_timer_index(TIM_TypeDef *instance) #endif #if defined(TIM22_BASE) if (instance == TIM22) { - index = TIMER2_INDEX; + index = TIMER22_INDEX; } #endif return index;