Skip to content

Commit b749948

Browse files
authored
remove use alternate branch logic
not working with Hybrid Compile
1 parent c4587f9 commit b749948

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

platform.py

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -120,20 +120,11 @@ def install_tool(TOOL, retry_count=0):
120120
if "arduino" in frameworks:
121121
self.packages["framework-arduinoespressif32"]["optional"] = False
122122
self.packages["framework-arduinoespressif32-libs"]["optional"] = False
123-
124-
URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/idf-release/v5.4/package/package_esp32_index.template.json"
125-
req = requests.get(URL)
126-
if req.status_code == 200:
127-
packjdata = req.json()
128-
self.packages["framework-arduinoespressif32"]["version"] = "https://github.com/espressif/arduino-esp32/archive/refs/heads/idf-release/v5.4.zip"
129-
dyn_lib_url = packjdata['packages'][0]['tools'][0]['systems'][0]['url']
130-
self.packages["framework-arduinoespressif32-libs"]["version"] = dyn_lib_url
131-
else:
132-
# use branch master
133-
URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/master/package/package_esp32_index.template.json"
134-
packjdata = requests.get(URL).json()
135-
dyn_lib_url = packjdata['packages'][0]['tools'][0]['systems'][0]['url']
136-
self.packages["framework-arduinoespressif32-libs"]["version"] = dyn_lib_url
123+
# use branch master
124+
URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/master/package/package_esp32_index.template.json"
125+
packjdata = requests.get(URL).json()
126+
dyn_lib_url = packjdata['packages'][0]['tools'][0]['systems'][0]['url']
127+
self.packages["framework-arduinoespressif32-libs"]["version"] = dyn_lib_url
137128

138129
if variables.get("custom_sdkconfig") is not None or len(str(board_sdkconfig)) > 3:
139130
frameworks.append("espidf")

0 commit comments

Comments
 (0)