summaryrefslogtreecommitdiff
path: root/py/profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/profile.c')
-rw-r--r--py/profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/profile.c b/py/profile.c
index e5fb35f0e..054a0f9e6 100644
--- a/py/profile.c
+++ b/py/profile.c
@@ -297,7 +297,7 @@ STATIC mp_obj_t mp_prof_callback_invoke(mp_obj_t callback, prof_callback_args_t
mp_prof_is_executing = false;
- if (MP_STATE_VM(mp_pending_exception) != MP_OBJ_NULL) {
+ if (MP_STATE_THREAD(mp_pending_exception) != MP_OBJ_NULL) {
mp_handle_pending(true);
}
return top;