File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -745,18 +745,18 @@ 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'
748
+ mpconfigport_path = 'lib/micropython/ports/esp32/mpconfigport.h'
749
749
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' )
752
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'))
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
760
761
761
# if '#define MICROPY_PY_MACHINE_I2S (0)' not in data:
762
762
# data = data.replace(
You can’t perform that action at this time.
0 commit comments