summaryrefslogtreecommitdiff
path: root/ports/stm32/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/stm32/timer.c')
-rw-r--r--ports/stm32/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/timer.c b/ports/stm32/timer.c
index c662303c5..b220bec5f 100644
--- a/ports/stm32/timer.c
+++ b/ports/stm32/timer.c
@@ -1459,7 +1459,7 @@ void timer_irq_handler(uint tim_id) {
if (unhandled != 0) {
__HAL_TIM_DISABLE_IT(&tim->tim, unhandled);
__HAL_TIM_CLEAR_IT(&tim->tim, unhandled);
- printf("Unhandled interrupt SR=0x%02lx (now disabled)\n", unhandled);
+ printf("Unhandled interrupt SR=0x%02x (now disabled)\n", (unsigned int)unhandled);
}
}
}