summaryrefslogtreecommitdiff
path: root/cc3200
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2016-12-09 22:49:44 -0800
committerScott Shawcroft <scott.shawcroft@gmail.com>2016-12-09 22:49:44 -0800
commitcd09726904dfb70fbfe6ed8de648737bc34ab37c (patch)
treeefa7ae3034bd5a469d9805073abec42026e4a5c1 /cc3200
parentb6f1eebab30b0e687e07cc3e42d9db9fd48aab05 (diff)
Fix pyexec_file calls.
Diffstat (limited to 'cc3200')
-rw-r--r--cc3200/mptask.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cc3200/mptask.c b/cc3200/mptask.c
index eb673b08c..9bfcff212 100644
--- a/cc3200/mptask.c
+++ b/cc3200/mptask.c
@@ -175,7 +175,7 @@ soft_reset:
if (!safeboot) {
// run boot.py
- int ret = pyexec_file("boot.py");
+ int ret = pyexec_file("boot.py", NULL);
if (ret & PYEXEC_FORCED_EXIT) {
goto soft_reset_exit;
}
@@ -200,7 +200,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(main_py, NULL);
if (ret & PYEXEC_FORCED_EXIT) {
goto soft_reset_exit;
}
@@ -374,4 +374,3 @@ STATIC void mptask_create_main_py (void) {
f_write(&fp, fresh_main_py, sizeof(fresh_main_py) - 1 /* don't count null terminator */, &n);
f_close(&fp);
}
-