Skip to content

Commit be53c35

Browse files
authored
Use latest Arduino libs
1 parent d59b3f2 commit be53c35

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

platform.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ def configure_default_packages(self, variables, targets):
4747
self.packages["framework-arduinoespressif32"]["optional"] = False
4848
self.packages["framework-arduinoespressif32-libs"]["optional"] = False
4949
# use matching espressif Arduino libs
50-
URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/release/v3.3.x/package/package_esp32_index.template.json"
51-
packjdata = requests.get(URL).json()
52-
dyn_lib_url = packjdata['packages'][0]['tools'][0]['systems'][0]['url']
50+
#URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/release/v3.3.x/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-master/esp32-arduino-libs-idf-master-1c468f68-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)