diff options
Diffstat (limited to 'stmhal/timer.c')
-rw-r--r-- | stmhal/timer.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/stmhal/timer.c b/stmhal/timer.c index f33fe5afb..787a6dd98 100644 --- a/stmhal/timer.c +++ b/stmhal/timer.c @@ -1157,11 +1157,9 @@ STATIC void timer_handle_irq_channel(pyb_timer_obj_t *tim, uint8_t channel, mp_o tim->callback = mp_const_none; __HAL_TIM_DISABLE_IT(&tim->tim, irq_mask); if (channel == 0) { - printf("Uncaught exception in Timer(" UINT_FMT - ") interrupt handler\n", tim->tim_id); + printf("uncaught exception in Timer(%u) interrupt handler\n", tim->tim_id); } else { - printf("Uncaught exception in Timer(" UINT_FMT ") channel " - UINT_FMT " interrupt handler\n", tim->tim_id, channel); + printf("uncaught exception in Timer(%u) channel %u interrupt handler\n", tim->tim_id, channel); } mp_obj_print_exception((mp_obj_t)nlr.ret_val); } |