Commit cfe75b2
committed
codal_port/drv_display: Raise any pending exc's if animation stopped.
This wait_for_event() function should really be doing (pseudo-code):
while (1) {
try:
mp_handle_pending(true);
microbit_hal_idle();
finally:
async_stop()
}
But for efficiency (not to use nlr_push) it doesn't call mp_handle_pending,
which could raise. So this function must be called if there is an
exception, so that exception can be processed correctly.
Fixes issue #134.
Signed-off-by: Damien George <damien@micropython.org>1 parent 1955adb commit cfe75b2
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
0 commit comments