Merge branch 'master' of github.com:adafruit/circuitpython
This commit is contained in:
commit
d81db3bced
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -97,4 +97,4 @@
|
|||||||
url = https://github.com/pewpew-game/pew-pewpew-standalone-10.x.git
|
url = https://github.com/pewpew-game/pew-pewpew-standalone-10.x.git
|
||||||
[submodule "frozen/circuitpython-stage"]
|
[submodule "frozen/circuitpython-stage"]
|
||||||
path = frozen/circuitpython-stage
|
path = frozen/circuitpython-stage
|
||||||
url = https://github.com/python-ugame/circuitpython-stage
|
url = https://github.com/python-ugame/circuitpython-stage.git
|
||||||
|
4
main.c
4
main.c
@ -213,10 +213,11 @@ bool run_code_py(safe_mode_t safe_mode) {
|
|||||||
serial_write_compressed(translate("WARNING: Your code filename has two extensions\n"));
|
serial_write_compressed(translate("WARNING: Your code filename has two extensions\n"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Turn off the display before the heap disappears.
|
// Turn off the display and flush the fileystem before the heap disappears.
|
||||||
#if CIRCUITPY_DISPLAYIO
|
#if CIRCUITPY_DISPLAYIO
|
||||||
reset_displays();
|
reset_displays();
|
||||||
#endif
|
#endif
|
||||||
|
filesystem_flush();
|
||||||
stop_mp();
|
stop_mp();
|
||||||
free_memory(heap);
|
free_memory(heap);
|
||||||
supervisor_move_memory();
|
supervisor_move_memory();
|
||||||
@ -375,6 +376,7 @@ int run_repl(void) {
|
|||||||
} else {
|
} else {
|
||||||
exit_code = pyexec_friendly_repl();
|
exit_code = pyexec_friendly_repl();
|
||||||
}
|
}
|
||||||
|
filesystem_flush();
|
||||||
reset_port();
|
reset_port();
|
||||||
reset_board();
|
reset_board();
|
||||||
stop_mp();
|
stop_mp();
|
||||||
|
@ -29,10 +29,8 @@ void displayio_refresh_displays(void) {
|
|||||||
if (mp_hal_is_interrupted()) {
|
if (mp_hal_is_interrupted()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Somehow reloads from the sdcard are being lost. So, cheat and reraise.
|
if (reload_requested) {
|
||||||
// But don't re-raise if already pending.
|
// Reload is about to happen, so don't redisplay.
|
||||||
if (reload_requested && MP_STATE_VM(mp_pending_exception) == MP_OBJ_NULL) {
|
|
||||||
mp_raise_reload_exception();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user