mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 05:40:38 +01:00
[python/modturtle] Allowinterruption during reset
Scenario: fro m turtle import * while 1==1: reset() -> This script cannot be interrupted
This commit is contained in:
@@ -30,6 +30,8 @@ mp_obj_t modturtle___init__() {
|
||||
|
||||
mp_obj_t modturtle_reset() {
|
||||
sTurtle.reset();
|
||||
// Cf comment on modkandinsky_draw_string
|
||||
micropython_port_interrupt_if_needed();
|
||||
return mp_const_none;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user