Don't run main script when soft-rebooting in raw mode

This commit is contained in:
Aivar Annamaa 2021-11-18 10:21:51 +02:00 committed by GitHub
parent 3b7d2f1dc3
commit 146e8830f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -333,7 +333,7 @@ STATIC bool run_code_py(safe_mode_t safe_mode) {
// Collects stickiness bits that apply in the current situation.
uint8_t next_code_stickiness_situation = SUPERVISOR_NEXT_CODE_OPT_NEWLY_SET;
if (safe_mode == NO_SAFE_MODE) {
if (safe_mode == NO_SAFE_MODE && pyexec_mode_kind == PYEXEC_MODE_FRIENDLY_REPL) {
static const char *const supported_filenames[] = STRING_LIST(
"code.txt", "code.py", "main.py", "main.txt");
#if CIRCUITPY_FULL_BUILD