File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ STATIC bool run_code_py(safe_mode_t safe_mode) {
333
333
// Collects stickiness bits that apply in the current situation.
334
334
uint8_t next_code_stickiness_situation = SUPERVISOR_NEXT_CODE_OPT_NEWLY_SET ;
335
335
336
- if (safe_mode == NO_SAFE_MODE && pyexec_mode_kind == PYEXEC_MODE_FRIENDLY_REPL ) {
336
+ if (safe_mode == NO_SAFE_MODE ) {
337
337
static const char * const supported_filenames [] = STRING_LIST (
338
338
"code.txt" , "code.py" , "main.py" , "main.txt" );
339
339
#if CIRCUITPY_FULL_BUILD
@@ -858,7 +858,11 @@ int __attribute__((used)) main(void) {
858
858
serial_write_compressed (translate ("soft reboot\n" ));
859
859
}
860
860
first_run = false;
861
- skip_repl = run_code_py (safe_mode );
861
+ if (pyexec_mode_kind == PYEXEC_MODE_FRIENDLY_REPL ) {
862
+ skip_repl = run_code_py (safe_mode );
863
+ } else {
864
+ skip_repl = false;
865
+ }
862
866
} else if (exit_code != 0 ) {
863
867
break ;
864
868
}
You can’t perform that action at this time.
0 commit comments