mirror of
https://github.com/m5stack/M5Stack_MicroPython.git
synced 2026-05-20 10:14:44 -07:00
d180316
This commit is contained in:
@@ -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
Reference in New Issue
Block a user