Skip to content

Commit 595a322

Browse files
authored
Create del_usb_source.py
1 parent e3795f0 commit 595a322

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tools/del_usb_source.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
import os
3+
import shutil
4+
from os.path import join
5+
6+
7+
def check_entry_s2_sdkconfig():
8+
s2_sdkconfig_path = join("$PROJECT_DIR", "esp32s2", "bin", "sdkconfig")
9+
if os.path.exists(s2_sdkconfig_path) == False:
10+
print("*** sdkconfig file for esp32s2 not found, no changes will be done ***")
11+
return
12+
13+
with open(s2_sdkconfig_path) as src:
14+
line = src.readline()
15+
if line.startswith("# CONFIG_TINYUSB_ENABLED is not set"):
16+
17+
return

0 commit comments

Comments
 (0)