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:
parent
dd5c831a0b
commit
aa061ae391
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue