teensy: Fix execution of frozen boot.py and main.py

This commit is contained in:
Dave Hylands 2016-08-19 21:09:52 -07:00 committed by Damien George
parent d2d9dfcd40
commit 253e1a6f67
2 changed files with 4 additions and 2 deletions

View File

@ -302,7 +302,7 @@ soft_reset:
#endif
#if MICROPY_MODULE_FROZEN
pyexec_frozen_module("boot");
pyexec_frozen_module("boot.py");
#else
if (!pyexec_file("/boot.py")) {
flash_error(4);
@ -314,7 +314,7 @@ soft_reset:
// run main script
#if MICROPY_MODULE_FROZEN
pyexec_frozen_module("main");
pyexec_frozen_module("main.py");
#else
{
vstr_t *vstr = vstr_new();

View File

@ -1,3 +1,5 @@
import pyb
print("Executing main.py")
led = pyb.LED(1)