Skip to content
This repository was archived by the owner on Oct 28, 2023. It is now read-only.

Commit 6ba8050

Browse files
committed
soft reboot in raw REPL mode skips boot.py (for ampy, pyboard)
1 parent 81908aa commit 6ba8050

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

esp32/main.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ void mp_task(void *pvParameter) {
9494
machine_pins_init();
9595

9696
// run boot-up scripts
97-
pyexec_frozen_module("_boot.py");
98-
pyexec_file("boot.py");
97+
if (pyexec_mode_kind != PYEXEC_MODE_RAW_REPL) {
98+
pyexec_frozen_module("_boot.py");
99+
pyexec_file("boot.py");
100+
}
99101
// if (pyexec_mode_kind == PYEXEC_MODE_FRIENDLY_REPL) {
100102
// pyexec_file("main.py");
101103
// }

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy