Skip to content

Commit f0e1c33

Browse files
committed
fixes compiler link errors
1 parent 25b1796 commit f0e1c33

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

builder/esp32.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -761,18 +761,11 @@ def compile(): # NOQA
761761
dst_file = os.path.join(dst_path, file)
762762
shutil.copyfile(src_file, dst_file)
763763

764-
mpconfigport_path = 'lib/micropython/ports/esp32/mpconfigport.h'
764+
# have yet to test to see if removing this is going to cause an issue.
765+
# mpconfigport_path = 'lib/micropython/ports/esp32/mpconfigport.h'
765766

766-
with open(mpconfigport_path, 'rb') as f:
767-
data = f.read().decode('utf-8')
768-
769-
if '#define MICROPY_BLUETOOTH_NIMBLE (0)' not in data:
770-
data = data.replace(
771-
'#define MICROPY_BLUETOOTH_NIMBLE (1)',
772-
'#define MICROPY_BLUETOOTH_NIMBLE (0)'
773-
)
774-
with open(mpconfigport_path, 'wb') as f:
775-
f.write(data.encode('utf-8'))
767+
# with open(mpconfigport_path, 'rb') as f:
768+
# data = f.read().decode('utf-8')
776769

777770
# if '#define MICROPY_PY_MACHINE_I2S (0)' not in data:
778771
# data = data.replace(

0 commit comments

Comments
 (0)