diff options
Diffstat (limited to 'stmhal/timer.c')
-rw-r--r-- | stmhal/timer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stmhal/timer.c b/stmhal/timer.c index 5c99d51f19..e95fb5f9ef 100644 --- a/stmhal/timer.c +++ b/stmhal/timer.c @@ -42,6 +42,7 @@ #include "timer.h" #include "servo.h" #include "pin.h" +#include "pfenv.h" /// \moduleref pyb /// \class Timer - periodically call a function @@ -1245,7 +1246,7 @@ STATIC void timer_handle_irq_channel(pyb_timer_obj_t *tim, uint8_t channel, mp_o } else { 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); + mp_obj_print_exception(printf_wrapper, NULL, (mp_obj_t)nlr.ret_val); } gc_unlock(); } |