File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -330,6 +330,7 @@ typedef long mp_off_t;
330330#define MICROPY_HW_MCU_NAME "RT-Thread"
331331#define MICROPY_PY_PATH_FIRST "/libs/mpy/"
332332#define MICROPY_PY_PATH_SECOND "/scripts/"
333+ #define MICROPY_MAIN_PY_PATH "/scripts/main.py"
333334
334335#define MICROPY_BEGIN_ATOMIC_SECTION () rt_hw_interrupt_disable()
335336#define MICROPY_END_ATOMIC_SECTION (state ) rt_hw_interrupt_enable(state)
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ void mpy_main(const char *filename) {
115115#ifdef MICROPYTHON_USING_UOS
116116 // run boot-up scripts
117117 void * frozen_data ;
118- const char * _boot_file = "_boot.py" , * boot_file = "boot.py" , * main_file = "main.py" ;
118+ const char * _boot_file = "_boot.py" , * boot_file = "boot.py" , * main_file = MICROPY_MAIN_PY_PATH ;
119119 if (mp_find_frozen_module (_boot_file , strlen (_boot_file ), & frozen_data ) != MP_FROZEN_NONE ) {
120120 pyexec_frozen_module (_boot_file );
121121 }
You can’t perform that action at this time.
0 commit comments