Skip to content

Commit 7ac5b6c

Browse files
committed
Don't change the project name for cyw43 arch
This is no longer required now that the project name is passed to the script from examples.json, and can cause issues with examples like picow_ble_temp_reader
1 parent acfe8de commit 7ac5b6c

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

scripts/pico_project.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -810,19 +810,7 @@ def GenerateCMake(folder, params):
810810
if any(["pico_cyw43_arch_lwip_poll" in line for line in lines]):
811811
print("Poll")
812812
params["wantPoll"] = True
813-
# Get project name
814813
for line in lines:
815-
if "add_executable" in line:
816-
if params["wantThreadsafeBackground"] or params["wantPoll"]:
817-
newProjectName = (
818-
line.split("(")[1].split()[0].strip().strip("()")
819-
)
820-
newProjectName = newProjectName.replace("_background", "")
821-
newProjectName = newProjectName.replace("_poll", "")
822-
print("New project name", newProjectName)
823-
cmake_header2 = cmake_header2.replace(
824-
projectName, newProjectName
825-
)
826814
if "WIFI_SSID" in line and "WIFI_SSID" not in cmake_header2:
827815
cmake_header2 += (
828816
'\nset(WIFI_SSID "Your Wi-Fi SSID")\n'

0 commit comments

Comments
 (0)