diff --git a/configs/viewtool-stm32f107/src/stm32_highpri.c b/configs/viewtool-stm32f107/src/stm32_highpri.c index 7bf6a4b6cc..ad9677469e 100644 --- a/configs/viewtool-stm32f107/src/stm32_highpri.c +++ b/configs/viewtool-stm32f107/src/stm32_highpri.c @@ -139,7 +139,7 @@ void tim6_handler(void) /* Check if we are in an interrupt handle */ - if (current_regs) + if (up_interrupt_context()) { g_highpri.handler++; }