Skip to content

Commit 1898197

Browse files
authored
Update actual libs
1 parent 5c4803d commit 1898197

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/release/v3.3.x/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/release/v3.3.x/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-master/esp32-arduino-libs-idf-master-1c468f68-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)