aboutsummaryrefslogtreecommitdiff
path: root/ports/cc3200/mptask.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/cc3200/mptask.c')
-rw-r--r--ports/cc3200/mptask.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/cc3200/mptask.c b/ports/cc3200/mptask.c
index 9d75f4678..d35338be1 100644
--- a/ports/cc3200/mptask.c
+++ b/ports/cc3200/mptask.c
@@ -180,7 +180,7 @@ soft_reset:
if (!safeboot) {
// run boot.py
- int ret = pyexec_file("boot.py");
+ int ret = pyexec_file_if_exists("boot.py");
if (ret & PYEXEC_FORCED_EXIT) {
goto soft_reset_exit;
}
@@ -205,7 +205,7 @@ soft_reset:
} else {
main_py = mp_obj_str_get_str(MP_STATE_PORT(machine_config_main));
}
- int ret = pyexec_file(main_py);
+ int ret = pyexec_file_if_exists(main_py);
if (ret & PYEXEC_FORCED_EXIT) {
goto soft_reset_exit;
}