Skip to content

Commit fb91932

Browse files
committed
【修复】多线程功能未开启时,出现的编译错误。
Signed-off-by: armink <[email protected]>
1 parent a29ccd2 commit fb91932

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/utils/mpirq.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ void mp_irq_handler(mp_irq_obj_t *self) {
7878
}
7979
gc_unlock();
8080
} else {
81+
#if MICROPY_ENABLE_SCHEDULER
8182
// Schedule call to user function
8283
mp_sched_schedule(self->handler, self->parent);
84+
#endif
8385
}
8486
}
8587
}

0 commit comments

Comments
 (0)