@@ -745,19 +745,27 @@ def compile(): # NOQA
745
745
dst_file = os .path .join (dst_path , file )
746
746
shutil .copyfile (src_file , dst_file )
747
747
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'))
761
769
762
770
if not sys .platform .startswith ('win' ):
763
771
cmds .append (compile_cmd )
0 commit comments