py/scheduler: Add missing MICROPY_WRAP_MP_SCHED_EXCEPTION usage.

This was missed in commit 7cbf826a95.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2021-04-30 16:48:29 +10:00
parent dd5c831a0b
commit aa061ae391
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@
#include "py/runtime.h" #include "py/runtime.h"
void mp_sched_exception(mp_obj_t exc) { void MICROPY_WRAP_MP_SCHED_EXCEPTION(mp_sched_exception)(mp_obj_t exc) {
MP_STATE_VM(mp_pending_exception) = exc; MP_STATE_VM(mp_pending_exception) = exc;
#if MICROPY_ENABLE_SCHEDULER #if MICROPY_ENABLE_SCHEDULER
if (MP_STATE_VM(sched_state) == MP_SCHED_IDLE) { if (MP_STATE_VM(sched_state) == MP_SCHED_IDLE) {