aboutsummaryrefslogtreecommitdiff
path: root/ports/teensy/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/teensy/main.c')
-rw-r--r--ports/teensy/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/teensy/main.c b/ports/teensy/main.c
index ad98a4364..1f529f589 100644
--- a/ports/teensy/main.c
+++ b/ports/teensy/main.c
@@ -302,7 +302,7 @@ soft_reset:
#if MICROPY_MODULE_FROZEN
pyexec_frozen_module("boot.py");
#else
- if (!pyexec_file("/boot.py")) {
+ if (!pyexec_file_if_exists("/boot.py")) {
flash_error(4);
}
#endif
@@ -322,7 +322,7 @@ soft_reset:
} else {
vstr_add_str(vstr, mp_obj_str_get_str(pyb_config_main));
}
- if (!pyexec_file(vstr_null_terminated_str(vstr))) {
+ if (!pyexec_file_if_exists(vstr_null_terminated_str(vstr))) {
flash_error(3);
}
vstr_free(vstr);