update i2s module

This commit is contained in:
0x1abin
2018-03-19 18:30:34 +08:00
parent fa1aaedfe9
commit 21ca31656a
2 changed files with 3 additions and 1 deletions
@@ -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;
@@ -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) {