This commit is contained in:
0x1abin
2018-03-16 11:47:31 +08:00
parent f9f767ae62
commit 4ced85d0b8
3 changed files with 3 additions and 1113 deletions
@@ -173,6 +173,7 @@ SRC_C = $(addprefix esp32/,\
machine_neopixel.c \
machine_dht.c \
machine_ow.c \
machine_i2s.c \
)
ifdef CONFIG_MICROPY_USE_DISPLAY
@@ -635,7 +635,8 @@ STATIC void checkBoot_py()
fd = fopen(VFS_NATIVE_MOUNT_POINT"/boot.py", "wb");
if (fd != NULL) {
char buf[128] = {'\0'};
sprintf(buf, "# This file is executed on every boot (including wake-boot from deepsleep)\nimport sys\nsys.path[1] = '/flash/lib'\n");
// sprintf(buf, "# This file is executed on every boot (including wake-boot from deepsleep)\nimport sys\nsys.path[1] = '/flash/lib'\n");
sprintf(buf, "import inisetup\n");
int len = strlen(buf);
int res = fwrite(buf, 1, len, fd);
if (res != len) {
File diff suppressed because it is too large Load Diff