Merge remote-tracking branch 'adafruit/7.2.x' into merge_7.2.2
This commit is contained in:
commit
51701e6abe
6
main.c
6
main.c
|
@ -413,6 +413,12 @@ STATIC bool run_code_py(safe_mode_t safe_mode, bool first_run, bool *simulate_re
|
|||
|
||||
if (result.return_code & PYEXEC_RELOAD) {
|
||||
next_code_stickiness_situation |= SUPERVISOR_NEXT_CODE_OPT_STICKY_ON_RELOAD;
|
||||
// Reload immediately unless the reload is due to autoreload. In that
|
||||
// case, we wait below to see if any other writes occur.
|
||||
if (supervisor_get_run_reason() != RUN_REASON_AUTO_RELOAD) {
|
||||
skip_repl = true;
|
||||
skip_wait = true;
|
||||
}
|
||||
} else if (result.return_code == 0) {
|
||||
next_code_stickiness_situation |= SUPERVISOR_NEXT_CODE_OPT_STICKY_ON_SUCCESS;
|
||||
if (next_code_options & SUPERVISOR_NEXT_CODE_OPT_RELOAD_ON_SUCCESS) {
|
||||
|
|
|
@ -36,6 +36,7 @@ CIRCUITPY_RE = 0
|
|||
CIRCUITPY_RGBMATRIX = 0
|
||||
CIRCUITPY_SDCARDIO = 0
|
||||
CIRCUITPY_SYNTHIO = 0
|
||||
CIRCUITPY_TRACEBACK = 0
|
||||
CIRCUITPY_TOUCHIO = 0
|
||||
CIRCUITPY_TRACEBACK = 0
|
||||
CIRCUITPY_ULAB = 0
|
||||
|
|
|
@ -80,7 +80,7 @@ inline bool autoreload_is_enabled() {
|
|||
}
|
||||
|
||||
void autoreload_trigger() {
|
||||
if (autoreload_enabled) {
|
||||
if (autoreload_enabled & !autoreload_suspended) {
|
||||
last_autoreload_trigger = supervisor_ticks_ms32();
|
||||
// Guard against the rare time that ticks is 0;
|
||||
if (last_autoreload_trigger == 0) {
|
||||
|
|
|
@ -216,8 +216,8 @@ void tud_msc_write10_complete_cb(uint8_t lun) {
|
|||
(void)lun;
|
||||
|
||||
// This write is complete; initiate an autoreload.
|
||||
autoreload_trigger();
|
||||
autoreload_resume(AUTORELOAD_SUSPEND_USB);
|
||||
autoreload_trigger();
|
||||
}
|
||||
|
||||
// Invoked when received SCSI_CMD_INQUIRY
|
||||
|
|
Loading…
Reference in New Issue