We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9472907 commit fdcb3b7Copy full SHA for fdcb3b7
1 file changed
stmhal/timer.c
@@ -1382,6 +1382,7 @@ void timer_irq_handler(uint tim_id) {
1382
// just get called continuously.
1383
uint32_t unhandled = tim->tim.Instance->DIER & 0xff & ~handled;
1384
if (unhandled != 0) {
1385
+ __HAL_TIM_DISABLE_IT(&tim->tim, unhandled);
1386
__HAL_TIM_CLEAR_IT(&tim->tim, unhandled);
1387
printf("Unhandled interrupt SR=0x%02lx (now disabled)\n", unhandled);
1388
}
0 commit comments