Skip to content

Commit b3bbeeb

Browse files
committed
Fix: Unchecked reference to TIM13 in TIM8_IRQHandler
Fixes stm32duino#585
1 parent adbd79e commit b3bbeeb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/arduino/HardwareTimer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,9 +1192,11 @@ extern "C" {
11921192
}
11931193

11941194
#if defined(STM32F1xx) || defined(STM32F2xx) ||defined(STM32F4xx) || defined(STM32F7xx) || defined(STM32H7xx)
1195+
#if defined(TIMER13_BASE)
11951196
if (HardwareTimer_Handle[TIMER13_INDEX] != NULL) {
11961197
HAL_TIM_IRQHandler(&HardwareTimer_Handle[TIMER13_INDEX]->handle);
11971198
}
1199+
#endif // TIMER13_BASE
11981200
#endif
11991201
}
12001202

0 commit comments

Comments
 (0)