Skip to content

Commit 0ec50ad

Browse files
committed
disables nimble for ESP32 build
1 parent 519fd42 commit 0ec50ad

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

builder/esp32.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -745,18 +745,18 @@ 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'
748+
mpconfigport_path = 'lib/micropython/ports/esp32/mpconfigport.h'
749749

750-
# with open(mpconfigport_path, 'rb') as f:
751-
# data = f.read().decode('utf-8')
750+
with open(mpconfigport_path, 'rb') as f:
751+
data = f.read().decode('utf-8')
752752

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'))
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'))
760760

761761
# if '#define MICROPY_PY_MACHINE_I2S (0)' not in data:
762762
# data = data.replace(

0 commit comments

Comments
 (0)