Skip to content

Commit 6e848c3

Browse files
authored
Use actual develop 5.4. libs
1 parent fa7beed commit 6e848c3

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
@@ -46,10 +46,12 @@ def configure_default_packages(self, variables, targets):
4646
if "arduino" in frameworks:
4747
self.packages["framework-arduinoespressif32"]["optional"] = False
4848
self.packages["framework-arduinoespressif32-libs"]["optional"] = False
49-
# use latest espressif Arduino libs
50-
URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/master/package/package_esp32_index.template.json"
51-
packjdata = requests.get(URL).json()
52-
dyn_lib_url = packjdata['packages'][0]['tools'][0]['systems'][0]['url']
49+
# use matching espressif Arduino libs
50+
#URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/master/package/package_esp32_index.template.json"
51+
#packjdata = requests.get(URL).json()
52+
#dyn_lib_url = packjdata['packages'][0]['tools'][0]['systems'][0]['url']
53+
# use newer libs as linked in package_esp32_index.template.json is too old
54+
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"
5355
self.packages["framework-arduinoespressif32-libs"]["version"] = dyn_lib_url
5456

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

0 commit comments

Comments
 (0)