Skip to content

Commit cd09726

Browse files
committed
Fix pyexec_file calls.
1 parent b6f1eeb commit cd09726

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

cc3200/mptask.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ void TASK_Micropython (void *pvParameters) {
175175

176176
if (!safeboot) {
177177
// run boot.py
178-
int ret = pyexec_file("boot.py");
178+
int ret = pyexec_file("boot.py", NULL);
179179
if (ret & PYEXEC_FORCED_EXIT) {
180180
goto soft_reset_exit;
181181
}
@@ -200,7 +200,7 @@ void TASK_Micropython (void *pvParameters) {
200200
} else {
201201
main_py = mp_obj_str_get_str(MP_STATE_PORT(machine_config_main));
202202
}
203-
int ret = pyexec_file(main_py);
203+
int ret = pyexec_file(main_py, NULL);
204204
if (ret & PYEXEC_FORCED_EXIT) {
205205
goto soft_reset_exit;
206206
}
@@ -374,4 +374,3 @@ STATIC void mptask_create_main_py (void) {
374374
f_write(&fp, fresh_main_py, sizeof(fresh_main_py) - 1 /* don't count null terminator */, &n);
375375
f_close(&fp);
376376
}
377-

stmhal/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ int main(void) {
539539
const char *boot_py = "boot.py";
540540
FRESULT res = f_stat(boot_py, NULL);
541541
if (res == FR_OK) {
542-
int ret = pyexec_file(boot_py);
542+
int ret = pyexec_file(boot_py, NULL);
543543
if (ret & PYEXEC_FORCED_EXIT) {
544544
goto soft_reset_exit;
545545
}
@@ -602,7 +602,7 @@ int main(void) {
602602
}
603603
FRESULT res = f_stat(main_py, NULL);
604604
if (res == FR_OK) {
605-
int ret = pyexec_file(main_py);
605+
int ret = pyexec_file(main_py, NULL);
606606
if (ret & PYEXEC_FORCED_EXIT) {
607607
goto soft_reset_exit;
608608
}

0 commit comments

Comments
 (0)