Skip to content

Commit 4231049

Browse files
authored
Update actual newer libs
1 parent c244238 commit 4231049

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

platform.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,12 @@ def configure_default_packages(self, variables, targets):
9191
if "arduino" in frameworks:
9292
self.packages["framework-arduinoespressif32"]["optional"] = False
9393
self.packages["framework-arduinoespressif32-libs"]["optional"] = False
94-
# use latest espressif Arduino libs
95-
URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/master/package/package_esp32_index.template.json"
96-
packjdata = requests.get(URL).json()
97-
dyn_lib_url = packjdata['packages'][0]['tools'][0]['systems'][0]['url']
94+
# use matching espressif Arduino libs
95+
#URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/master/package/package_esp32_index.template.json"
96+
#packjdata = requests.get(URL).json()
97+
#dyn_lib_url = packjdata['packages'][0]['tools'][0]['systems'][0]['url']
98+
# use newer libs as linked in package_esp32_index.template.json is too old
99+
dyn_lib_url = "https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.4/esp32-arduino-libs-idf-release_v5.4-6897a7bf-v1.zip"
98100
self.packages["framework-arduinoespressif32-libs"]["version"] = dyn_lib_url
99101

100102
if variables.get("custom_sdkconfig") is not None or len(str(board_sdkconfig)) > 3:

0 commit comments

Comments
 (0)