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

crypto-aes
Dave Hylands 7 years ago committed by Damien George
parent d2d9dfcd40
commit 253e1a6f67

@ -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();

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

Loading…
Cancel
Save