From 21ca31656a1fbbf30023051bb520835be0b24257 Mon Sep 17 00:00:00 2001 From: 0x1abin <270995079@qq.com> Date: Mon, 19 Mar 2018 18:30:34 +0800 Subject: [PATCH] update i2s module --- MicroPython_BUILD/components/micropython/esp32/modmachine.h | 1 + MicroPython_BUILD/components/micropython/extmod/vfs_native.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/MicroPython_BUILD/components/micropython/esp32/modmachine.h b/MicroPython_BUILD/components/micropython/esp32/modmachine.h index 8fe4b6f..fb46f0b 100644 --- a/MicroPython_BUILD/components/micropython/esp32/modmachine.h +++ b/MicroPython_BUILD/components/micropython/esp32/modmachine.h @@ -49,6 +49,7 @@ extern const mp_obj_type_t machine_neopixel_type; extern const mp_obj_type_t machine_dht_type; extern const mp_obj_type_t machine_onewire_type; extern const mp_obj_type_t machine_ds18x20_type; +extern const mp_obj_type_t machine_i2s_type; extern nvs_handle mpy_nvs_handle; diff --git a/MicroPython_BUILD/components/micropython/extmod/vfs_native.c b/MicroPython_BUILD/components/micropython/extmod/vfs_native.c index a76180a..3bc752a 100644 --- a/MicroPython_BUILD/components/micropython/extmod/vfs_native.c +++ b/MicroPython_BUILD/components/micropython/extmod/vfs_native.c @@ -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) {