Skip to content

Commit da81312

Browse files
committed
removes disabling I2S
1 parent df892ca commit da81312

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

builder/esp32.py

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -745,19 +745,27 @@ def compile(): # NOQA
745745
dst_file = os.path.join(dst_path, file)
746746
shutil.copyfile(src_file, dst_file)
747747

748-
mpconfigport_path = 'lib/micropython/ports/esp32/mpconfigport.h'
749-
750-
with open(mpconfigport_path, 'rb') as f:
751-
data = f.read().decode('utf-8')
752-
753-
if '#define MICROPY_PY_MACHINE_I2S (0)' not in data:
754-
data = data.replace(
755-
'#ifndef MICROPY_PY_MACHINE_I2S',
756-
'#define MICROPY_PY_MACHINE_I2S (0)\n'
757-
'#ifndef MICROPY_PY_MACHINE_I2S'
758-
)
759-
with open(mpconfigport_path, 'wb') as f:
760-
f.write(data.encode('utf-8'))
748+
# mpconfigport_path = 'lib/micropython/ports/esp32/mpconfigport.h'
749+
750+
# with open(mpconfigport_path, 'rb') as f:
751+
# data = f.read().decode('utf-8')
752+
753+
# if '#define MICROPY_BLUETOOTH_NIMBLE (0)' not in data:
754+
# data = data.replace(
755+
# '#define MICROPY_BLUETOOTH_NIMBLE (1)',
756+
# '#define MICROPY_BLUETOOTH_NIMBLE (0)'
757+
# )
758+
# with open(mpconfigport_path, 'wb') as f:
759+
# f.write(data.encode('utf-8'))
760+
761+
# if '#define MICROPY_PY_MACHINE_I2S (0)' not in data:
762+
# data = data.replace(
763+
# '#ifndef MICROPY_PY_MACHINE_I2S',
764+
# '#define MICROPY_PY_MACHINE_I2S (0)\n'
765+
# '#ifndef MICROPY_PY_MACHINE_I2S'
766+
# )
767+
# with open(mpconfigport_path, 'wb') as f:
768+
# f.write(data.encode('utf-8'))
761769

762770
if not sys.platform.startswith('win'):
763771
cmds.append(compile_cmd)

0 commit comments

Comments
 (0)